Package apoc.result

Class VirtualPath

java.lang.Object
apoc.result.VirtualPath
All Implemented Interfaces:
Iterable<org.neo4j.graphdb.Entity>, org.neo4j.graphdb.Path

public class VirtualPath extends Object implements org.neo4j.graphdb.Path
  • Constructor Details

    • VirtualPath

      public VirtualPath(org.neo4j.graphdb.Node start)
  • Method Details

    • addRel

      public void addRel(org.neo4j.graphdb.Relationship relationship)
    • startNode

      public org.neo4j.graphdb.Node startNode()
      Specified by:
      startNode in interface org.neo4j.graphdb.Path
    • endNode

      public org.neo4j.graphdb.Node endNode()
      Specified by:
      endNode in interface org.neo4j.graphdb.Path
    • lastRelationship

      public org.neo4j.graphdb.Relationship lastRelationship()
      Specified by:
      lastRelationship in interface org.neo4j.graphdb.Path
    • relationships

      public Iterable<org.neo4j.graphdb.Relationship> relationships()
      Specified by:
      relationships in interface org.neo4j.graphdb.Path
    • reverseRelationships

      public Iterable<org.neo4j.graphdb.Relationship> reverseRelationships()
      Specified by:
      reverseRelationships in interface org.neo4j.graphdb.Path
    • nodes

      public Iterable<org.neo4j.graphdb.Node> nodes()
      Specified by:
      nodes in interface org.neo4j.graphdb.Path
    • reverseNodes

      public Iterable<org.neo4j.graphdb.Node> reverseNodes()
      Specified by:
      reverseNodes in interface org.neo4j.graphdb.Path
    • length

      public int length()
      Specified by:
      length in interface org.neo4j.graphdb.Path
    • iterator

      @Nonnull public Iterator<org.neo4j.graphdb.Entity> iterator()
      Specified by:
      iterator in interface Iterable<org.neo4j.graphdb.Entity>
      Specified by:
      iterator in interface org.neo4j.graphdb.Path
    • toString

      public String toString()
      Specified by:
      toString in interface org.neo4j.graphdb.Path
      Overrides:
      toString in class Object