scalax.collection.GraphTraversalImpl

PathBuilder

class PathBuilder extends (GraphTraversalImpl.this)#WalkBuilder with (GraphTraversalImpl.this)#PathBuilder

A Builder for valid paths in this graph.

Nodes and edges may be added either alternating or node by node respectively edge by edge. Either way, the builder ensures that the added elements build a valid path.

A node addition fails if either the node to be added is already contained or the node is not a direct successor of the previously added node or of the target node of the previously added edge. An edge addition fails if either the edge to be added is is already contained or the edge is not an outgoing edge from the previously added node or of the target node of the previously added edge.

It is recommended using add instead of += to track failed additions.

Definition Classes
GraphTraversalImplGraphTraversal
Self Type
(GraphTraversalImpl.this)#PathBuilder
Linear Supertypes
(GraphTraversalImpl.this)#PathBuilder, (GraphTraversalImpl.this)#WalkBuilder, (GraphTraversalImpl.this)#WalkBuilder, Builder[(GraphTraversalImpl.this)#InnerElem, (GraphTraversalImpl.this)#Path], Growable[(GraphTraversalImpl.this)#InnerElem], Clearable, AnyRef, Any
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. PathBuilder
  2. PathBuilder
  3. WalkBuilder
  4. WalkBuilder
  5. Builder
  6. Growable
  7. Clearable
  8. AnyRef
  9. Any
Implicitly
  1. by anyToNode
  2. by EdgeAssoc
  3. by any2stringadd
  4. by any2stringfmt
  5. by any2ArrowAssoc
  6. by any2Ensuring
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new PathBuilder(start: (GraphTraversalImpl.this)#NodeT, sizeHint: Int = ..., edgeSelector: ((GraphTraversalImpl.this)#NodeT, (GraphTraversalImpl.this)#NodeT) ⇒ Option[(GraphTraversalImpl.this)#EdgeT])

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def +(other: String): String

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ++=(xs: TraversableOnce[(GraphTraversalImpl.this)#InnerElem]): PathBuilder.this.type

    Definition Classes
    Growable
  6. final def +=(edge: (GraphTraversalImpl.this)#EdgeT): PathBuilder.this.type

    Tries to add edge to the tail of the path/walk.

    Tries to add edge to the tail of the path/walk.

    Definition Classes
    WalkBuilder
    Annotations
    @inline()
  7. final def +=(node: (GraphTraversalImpl.this)#NodeT): PathBuilder.this.type

    Tries to add node to the tail of the path/walk.

    Tries to add node to the tail of the path/walk.

    Definition Classes
    WalkBuilder
    Annotations
    @inline()
  8. def +=(elem: (GraphTraversalImpl.this)#InnerElem): PathBuilder.this.type

    Tries to add elem to the tail of the path/walk.

    Tries to add elem to the tail of the path/walk.

    Definition Classes
    WalkBuilder → Builder → Growable
  9. def +=(elem1: (GraphTraversalImpl.this)#InnerElem, elem2: (GraphTraversalImpl.this)#InnerElem, elems: (GraphTraversalImpl.this)#InnerElem*): PathBuilder.this.type

    Definition Classes
    Growable
  10. def ->[B](y: B): ((GraphTraversalImpl.this)#PathBuilder, B)

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to ArrowAssoc[(GraphTraversalImpl.this)#PathBuilder] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc
    Annotations
    @inline()
  11. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  12. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  13. def add(edge: (GraphTraversalImpl.this)#EdgeT): Boolean

    Tries to add edge to the tail of the path/walk.

    Tries to add edge to the tail of the path/walk.

    returns

    Whether the addition was successful.

    Definition Classes
    PathBuilderWalkBuilderWalkBuilder
  14. def add(node: (GraphTraversalImpl.this)#NodeT): Boolean

    Tries to add node to the tail of the path/walk.

    Tries to add node to the tail of the path/walk.

    returns

    Whether the addition was successful.

    Definition Classes
    PathBuilderWalkBuilderWalkBuilder
  15. final def add(elem: (GraphTraversalImpl.this)#InnerElem): Boolean

    Tries to add elem to the tail of the path/walk.

    Tries to add elem to the tail of the path/walk.

    returns

    Whether the addition was successful.

    Definition Classes
    WalkBuilder
    Annotations
    @inline()
  16. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  17. def clear(): Unit

    Definition Classes
    PathBuilderWalkBuilder → Builder → Growable → Clearable
  18. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. val edges: ArrayBuffer[(GraphTraversalImpl.this)#EdgeT]

    Attributes
    protected[this]
    Definition Classes
    WalkBuilder
  20. def ensuring(cond: ((GraphTraversalImpl.this)#PathBuilder) ⇒ Boolean, msg: ⇒ Any): (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to Ensuring[(GraphTraversalImpl.this)#PathBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  21. def ensuring(cond: ((GraphTraversalImpl.this)#PathBuilder) ⇒ Boolean): (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to Ensuring[(GraphTraversalImpl.this)#PathBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  22. def ensuring(cond: Boolean, msg: ⇒ Any): (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to Ensuring[(GraphTraversalImpl.this)#PathBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  23. def ensuring(cond: Boolean): (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to Ensuring[(GraphTraversalImpl.this)#PathBuilder] performed by method any2Ensuring in scala.Predef.
    Definition Classes
    Ensuring
  24. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  26. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  27. def formatted(fmtstr: String): String

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to StringFormat performed by method any2stringfmt in scala.Predef.
    Definition Classes
    StringFormat
    Annotations
    @inline()
  28. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  29. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  30. def isDefined: Boolean

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    Param
  31. def isEdge: Boolean

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    NodeParam
  32. def isIn: Boolean

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    InParamParam
  33. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  34. def isNode: Boolean

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    NodeParam
  35. def isOut: Boolean

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    InParamParam
  36. var lastNode: Option[(GraphTraversalImpl.this)#NodeT]

    Attributes
    protected[this]
    Definition Classes
    WalkBuilder
  37. def mapResult[NewTo](f: ((GraphTraversalImpl.this)#Path) ⇒ NewTo): Builder[(GraphTraversalImpl.this)#InnerElem, NewTo]

    Definition Classes
    Builder
  38. val n1: (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to EdgeAssoc[(GraphTraversalImpl.this)#PathBuilder] performed by method EdgeAssoc in scalax.collection.GraphPredef.
    Definition Classes
    EdgeAssoc
  39. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  40. val nodes: ArrayBuffer[(GraphTraversalImpl.this)#NodeT]

    Attributes
    protected[this]
    Definition Classes
    WalkBuilder
  41. final def notify(): Unit

    Definition Classes
    AnyRef
  42. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  43. def result(): (GraphTraversalImpl.this)#Path

    Definition Classes
    PathBuilderWalkBuilder → Builder
  44. final def resultEdges: IndexedSeq[(GraphTraversalImpl.this)#EdgeT]

    Attributes
    protected
    Definition Classes
    WalkBuilder
  45. def select(fromNodes: Set[(GraphTraversalImpl.this)#NodeT]): Option[(GraphTraversalImpl.this)#NodeT]

    Attributes
    protected
    Definition Classes
    PathBuilderWalkBuilder
  46. def sizeHint(coll: TraversableLike[_, _], delta: Int): Unit

    Definition Classes
    Builder
  47. def sizeHint(coll: TraversableLike[_, _]): Unit

    Definition Classes
    Builder
  48. def sizeHint(size: Int): Unit

    Definition Classes
    Builder
  49. def sizeHintBounded(size: Int, boundingColl: TraversableLike[_, _]): Unit

    Definition Classes
    Builder
  50. val start: (GraphTraversalImpl.this)#NodeT

    The node this walk starts at.

    The node this walk starts at.

    Definition Classes
    PathBuilderWalkBuilderWalkBuilder
  51. def stringPrefix: String

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    NodeParam
  52. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  53. def toString(): String

    Definition Classes
    AnyRef → Any
  54. val value: (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    OuterNodeNodeParam
  55. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  56. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  57. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  58. def ~[N >: N1](n2: N): UnDiEdge[N]

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to EdgeAssoc[(GraphTraversalImpl.this)#PathBuilder] performed by method EdgeAssoc in scalax.collection.GraphPredef.
    Definition Classes
    EdgeAssoc
    Annotations
    @inline()
  59. def ~>[N >: N1](n2: N): DiEdge[N]

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to EdgeAssoc[(GraphTraversalImpl.this)#PathBuilder] performed by method EdgeAssoc in scalax.collection.GraphPredef.
    Definition Classes
    EdgeAssoc
    Annotations
    @inline()
  60. def [B](y: B): ((GraphTraversalImpl.this)#PathBuilder, B)

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to ArrowAssoc[(GraphTraversalImpl.this)#PathBuilder] performed by method any2ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. val self: Any

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to StringAdd performed by method any2stringadd in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathBuilder: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to StringFormat performed by method any2stringfmt in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathBuilder: StringFormat).self
    Definition Classes
    StringFormat
  3. def toString(): String

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder] performed by method anyToNode in scalax.collection.GraphPredef.
    Shadowing
    This implicitly inherited member is shadowed by one or more members in this class.
    To access this member you can use a type ascription:
    (pathBuilder: OuterNode[(GraphTraversalImpl.this)#PathBuilder]).toString()
    Definition Classes
    NodeParam → AnyRef → Any

Deprecated Value Members

  1. def x: (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to ArrowAssoc[(GraphTraversalImpl.this)#PathBuilder] performed by method any2ArrowAssoc in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathBuilder: ArrowAssoc[(GraphTraversalImpl.this)#PathBuilder]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  2. def x: (GraphTraversalImpl.this)#PathBuilder

    Implicit information
    This member is added by an implicit conversion from (GraphTraversalImpl.this)#PathBuilder to Ensuring[(GraphTraversalImpl.this)#PathBuilder] performed by method any2Ensuring in scala.Predef.
    Shadowing
    This implicitly inherited member is ambiguous. One or more implicitly inherited members have similar signatures, so calling this member may produce an ambiguous implicit conversion compiler error.
    To access this member you can use a type ascription:
    (pathBuilder: Ensuring[(GraphTraversalImpl.this)#PathBuilder]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from (GraphTraversalImpl.this)#PathBuilder

Inherited from (GraphTraversalImpl.this)#WalkBuilder

Inherited from (GraphTraversalImpl.this)#WalkBuilder

Inherited from Builder[(GraphTraversalImpl.this)#InnerElem, (GraphTraversalImpl.this)#Path]

Inherited from Growable[(GraphTraversalImpl.this)#InnerElem]

Inherited from Clearable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion anyToNode from (GraphTraversalImpl.this)#PathBuilder to OuterNode[(GraphTraversalImpl.this)#PathBuilder]

Inherited by implicit conversion EdgeAssoc from (GraphTraversalImpl.this)#PathBuilder to EdgeAssoc[(GraphTraversalImpl.this)#PathBuilder]

Inherited by implicit conversion any2stringadd from (GraphTraversalImpl.this)#PathBuilder to StringAdd

Inherited by implicit conversion any2stringfmt from (GraphTraversalImpl.this)#PathBuilder to StringFormat

Inherited by implicit conversion any2ArrowAssoc from (GraphTraversalImpl.this)#PathBuilder to ArrowAssoc[(GraphTraversalImpl.this)#PathBuilder]

Inherited by implicit conversion any2Ensuring from (GraphTraversalImpl.this)#PathBuilder to Ensuring[(GraphTraversalImpl.this)#PathBuilder]

Ungrouped