scalax.collection

GraphTraversalImpl

trait GraphTraversalImpl[N, E[X] <: EdgeLikeIn[X]] extends GraphTraversal[N, E] with State[N, E]

Self Type
GraphTraversalImpl[N, E]
Linear Supertypes
State[N, E], GraphTraversal[N, E], GraphBase[N, E], Serializable, Serializable, AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GraphTraversalImpl
  2. State
  3. GraphTraversal
  4. GraphBase
  5. Serializable
  6. Serializable
  7. AnyRef
  8. 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

Type Members

  1. class AnyEdgeLazyCycle extends AnyEdgeLazyPath with Cycle

    Attributes
    protected
  2. class AnyEdgeLazyPath extends SimpleLazyPath

    LazyPath where edges are selected by taking the first one fitting.

  3. abstract class Component extends Properties

    Represents a component of this graph by a lazy implementation.

  4. class ComponentImpl extends Component

    Attributes
    protected
  5. case class ComponentTraverser(root: NodeT = GraphTraversalImpl.this.emptyRoot, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.ComponentTraverser with Product with Serializable

    Controls the properties of consecutive graph traversals with no specific root.

  6. trait Cycle extends Path

    Represents a cycle in this graph listing the nodes and connecting edges on it with the following syntax:

  7. type CycleStackElem = (NodeT, Iterable[EdgeT])

    Attributes
    protected
  8. trait DownUpTraverser[A] extends AnyRef

    Attributes
    protected
  9. trait Edge extends Serializable

    Definition Classes
    GraphBase
  10. class EdgeBase extends InnerEdgeParam[N, E, NodeT, E] with InnerEdge

    Definition Classes
    GraphBase
  11. sealed trait EdgeOrdering extends Ordering[EdgeT] with ElemOrdering

    Definition Classes
    GraphBase
  12. trait EdgeSet extends Set[EdgeT] with ExtSetMethods[EdgeT] with Serializable

    Definition Classes
    GraphBase
  13. abstract type EdgeSetT <: EdgeSet

    Definition Classes
    GraphBase
  14. abstract type EdgeT <: InnerEdgeParam[N, E, NodeT, E] with InnerEdge with Serializable

    Definition Classes
    GraphBase
  15. sealed trait ElemOrdering extends AnyRef

    Base trait for graph Orderings.

  16. trait ExtendedNodeVisitor extends (NodeT) ⇒ VisitorReturn with (NodeT, Int, Int, ⇒ NodeInformer) ⇒ VisitorReturn

    Template for extended node visitors.

  17. abstract class FluentProperties[+This <: FluentProperties[This]] extends AnyRef

    Properties and methods for creating modified properties in a fluent-interface manner.

  18. trait Impl[A] extends AnyRef

    Attributes
    protected
  19. trait InnerEdge extends Iterable[NodeT] with Edge with InnerElem

    Definition Classes
    GraphBase
  20. case class InnerEdgeTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.InnerEdgeTraverser with Impl[EdgeT] with Product with Serializable

    Controls the properties of inner-edge graph traversals.

  21. sealed trait InnerElem extends AnyRef

    Definition Classes
    GraphBase
  22. case class InnerElemTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.InnerElemTraverser with Impl[InnerElem] with Product with Serializable

    Controls the properties of inner-element graph traversals.

  23. trait InnerNode extends InnerNodeParam[N] with Node with InnerElem

    Definition Classes
    GraphBase
  24. case class InnerNodeDownUpTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.InnerNodeDownUpTraverser with DownUpTraverser[(Boolean, NodeT)] with Impl[(Boolean, NodeT)] with Product with Serializable

    Controls the properties of inner-node down-up graph traversals.

  25. trait InnerNodeState extends AnyRef

    Definition Classes
    State
  26. trait InnerNodeTraversalImpl extends TraverserInnerNode with InnerNodeState

  27. case class InnerNodeTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.InnerNodeTraverser with Impl[NodeT] with Product with Serializable

    Controls the properties of inner-node graph traversals.

  28. abstract class LazyPath extends Path

    Path based on the passed collection of nodes with lazy evaluation of edges.

  29. final class MapPathTraversable[T] extends Traversable[T]

    Enables lazy traversing of a Map with key = source, value = target.

  30. class MinWeightEdgeLazyPath extends SimpleLazyPath

    LazyPath with edges selected by minimal weight.

  31. class MultiEdgeLazyCycle extends MultiEdgeLazyPath with Cycle

    Attributes
    protected
  32. class MultiEdgeLazyPath extends LazyPath

    LazyPath with edge selection such that there exists no duplicate edge in the path.

  33. sealed class NoOrdering extends ElemOrdering

    The empty ElemOrdering.

  34. trait Node extends Serializable

    Definition Classes
    GraphBase
  35. abstract class NodeBase extends InnerNode

    Attributes
    protected
    Definition Classes
    GraphBase
  36. sealed trait NodeOrdering extends Ordering[NodeT] with ElemOrdering

    Ordering for the path dependent type NodeT.

  37. trait NodeSet extends Set[NodeT] with ExtSetMethods[NodeT] with Serializable

    Definition Classes
    GraphBase
  38. abstract type NodeSetT <: NodeSet

    Definition Classes
    GraphBase
  39. abstract type NodeT <: InnerNodeTraversalImpl

    Definition Classes
    GraphTraversalImplGraphTraversalGraphBase
  40. case class OuterEdgeTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.OuterEdgeTraverser with Impl[E[N]] with Product with Serializable

    Controls the properties of outer-edge graph traversals.

  41. case class OuterElemTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends Traverser[OuterElem[N, E], GraphTraversalImpl.OuterElemTraverser] with GraphTraversalImpl.OuterElemTraverser with Impl[OuterElem[N, E]] with Product with Serializable

    Controls the properties of outer-element graph traversals.

  42. case class OuterNodeDownUpTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.OuterNodeDownUpTraverser with DownUpTraverser[(Boolean, N)] with Impl[(Boolean, N)] with Product with Serializable

    Controls the properties of outer-node down-up graph traversals.

  43. case class OuterNodeTraverser(root: NodeT, parameters: Parameters = ..., subgraphNodes: (NodeT) ⇒ Boolean = GraphTraversalImpl.this.anyNode, subgraphEdges: (GraphTraversalImpl.EdgeT) ⇒ Boolean = GraphTraversalImpl.this.anyEdge, ordering: GraphTraversalImpl.ElemOrdering = GraphTraversalImpl.this.noOrdering) extends GraphTraversalImpl.OuterNodeTraverser with Impl[N] with Product with Serializable

    Controls the properties of outer-node graph traversals.

  44. trait Path extends Traversable[OutParam[N, E]]

    Represents a path in this graph listing the nodes and connecting edges on it with the following syntax:

  45. trait Properties extends AnyRef

    Properties controlling traversals.

  46. final class ReverseStackTraversable[S, T] extends Traversable[T]

    Efficient reverse foreach overcoming ArrayStack's deficiency not to overwrite reverseIterator.

  47. abstract class SimpleLazyPath extends LazyPath

    LazyPath with deferred edges selection.

  48. class Traversal extends GraphTraversalImpl.Traversal

    Abstract class for functional traversals.

  49. abstract class Traverser[A, +This <: Traverser[A, This]] extends TraverserMethods[A, This] with Properties with Traversable[A]

    Controls the properties of consecutive graph traversals starting at a root node.

  50. trait TraverserInnerNode extends InnerNode

    Definition Classes
    GraphTraversal
  51. abstract class TraverserMethods[A, +This <: TraverserMethods[A, This]] extends FluentProperties[This]

    The root-related methods Traverser will inherit.

Abstract Value Members

  1. abstract def edges: EdgeSetT

    The edge set of this Graph commonly referred to as E(G).

    The edge set of this Graph commonly referred to as E(G).

    returns

    Set of all contained edges.

    Definition Classes
    GraphBase
  2. abstract def isDirected: Boolean

    Definition Classes
    GraphBase
  3. abstract def isHyper: Boolean

    Definition Classes
    GraphBase
  4. abstract def newEdge(innerEdge: E[NodeT]): EdgeT

    Attributes
    protected
    Definition Classes
    GraphBase
  5. abstract def newNode(n: N): NodeT

    Attributes
    protected
    Definition Classes
    GraphBase
  6. abstract def nodes: NodeSetT

    The node (vertex) set of this Graph commonly referred to as V(G).

    The node (vertex) set of this Graph commonly referred to as V(G).

    returns

    Set of all contained nodes.

    Definition Classes
    GraphBase

Concrete 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[N, E] to StringAdd performed by method any2stringadd in scala.Predef.
    Definition Classes
    StringAdd
  5. def ->[B](y: B): (GraphTraversalImpl[N, E], B)

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

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

    Definition Classes
    Any
  8. object Edge extends Serializable

    Definition Classes
    GraphBase
  9. object EdgeOrdering extends Serializable

    Ordering for the path dependent type EdgeT.

  10. object EdgeT

    Definition Classes
    GraphBase
  11. object ExtendedNodeVisitor

    Definition Classes
    GraphTraversal
  12. object InnerEdge extends Serializable

    Definition Classes
    GraphBase
  13. object InnerNode extends Serializable

    Definition Classes
    GraphBase
  14. object Node extends Serializable

    Definition Classes
    GraphBase
  15. object NodeOrdering extends Serializable

    Definition Classes
    GraphBase
  16. object Path

    Definition Classes
    GraphTraversal
  17. object TraverserInnerNode extends Serializable

    Definition Classes
    GraphTraversal
  18. final val anyEdge: (EdgeT) ⇒ Boolean

    Default edge filter letting path all edges (non-filter).

    Default edge filter letting path all edges (non-filter).

    Definition Classes
    GraphTraversal
  19. final val anyNode: (NodeT) ⇒ Boolean

    Default node filter letting path all nodes (non-filter).

    Default node filter letting path all nodes (non-filter).

    Definition Classes
    GraphTraversal
  20. final lazy val anyOrdering: AnyOrdering[N]

    Attributes
    protected
    Definition Classes
    GraphBase
  21. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  22. def clearNodeStates(flags: FlagWord, flagsExt: ExtBitSet): Unit

    Attributes
    protected
    Definition Classes
    State
  23. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  24. def componentTraverser(parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): ComponentTraverser

    Creates a ComponentTraverser responsible for invoking graph traversal methods that cover all components of this possibly disconnected graph.

    Creates a ComponentTraverser responsible for invoking graph traversal methods that cover all components of this possibly disconnected graph.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  25. final def cycle(results: (Option[NodeT], ArrayStack[(NodeT, Iterable[EdgeT])]), edgeFilter: (EdgeT) ⇒ Boolean): Option[Cycle]

    Attributes
    protected
  26. final lazy val defaultEdgeOrdering: EdgeOrdering

    Definition Classes
    GraphBase
  27. final lazy val defaultNodeOrdering: NodeOrdering

    Definition Classes
    GraphBase
  28. def dump(store: FlagStore): ExtBitSet

    Attributes
    protected
    Definition Classes
    State
  29. def dumpDirty: ExtBitSet

    Returns a copy of the current dirty-flags for dump purposes.

    Returns a copy of the current dirty-flags for dump purposes.

    Definition Classes
    State
  30. def dumpInUse: ExtBitSet

    Returns a copy of the current inUse-flags for dump purposes.

    Returns a copy of the current inUse-flags for dump purposes.

    Definition Classes
    State
  31. implicit final def edgeToEdgeCont(e: E[N]): E[NodeT]

    Attributes
    protected
    Definition Classes
    GraphBase
    Annotations
    @inline()
  32. def ensuring(cond: (GraphTraversalImpl[N, E]) ⇒ Boolean, msg: ⇒ Any): GraphTraversalImpl[N, E]

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

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

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

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

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  39. final def findCycle(visitor: (InnerElem) ⇒ Unit): Option[Cycle]

    Finds a cycle in this graph and calls visitor for each inner element visited during the search.

    Finds a cycle in this graph and calls visitor for each inner element visited during the search. Use componentTraverser to pass non-default arguments.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  40. final def findCycle: Option[Cycle]

    Finds a cycle in this graph.

    Finds a cycle in this graph. Use componentTraverser to pass non-default arguments.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  41. def formatted(fmtstr: String): String

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

    Definition Classes
    AnyRef → Any
  43. def graphSize: Int

    The size - commonly referred to as ||G|| - of this graph equaling to the number of edges.

    The size - commonly referred to as ||G|| - of this graph equaling to the number of edges.

    Method size is reserved for the number of nodes and edges because Graph is also SetLike with set elements being nodes or edges.

    Definition Classes
    GraphBase
  44. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  45. def initialize(nodes: Iterable[N], edges: Iterable[E[N]]): Unit

    Populates this graph with nodes and edges.

    Populates this graph with nodes and edges.

    The implementing class will typically have a constructor with the same parameters which is invoked by from of the companion object.

    nodes

    The isolated (and optionally any other) outer nodes that the node set of this graph is to be populated with.

    edges

    The outer edges that the edge set of this graph is to be populated with. Nodes being the end of any of these edges will be added to the node set.

    Attributes
    protected
    Definition Classes
    GraphBase
  46. def innerEdgeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): InnerEdgeTraverser

    Creates a InnerEdgeTraverser based on scala.collection.Traversable[EdgeT].

    Creates a InnerEdgeTraverser based on scala.collection.Traversable[EdgeT].

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  47. def innerElemTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): InnerElemTraverser

    Creates a InnerElemTraverser based on scala.collection.Traversable[InnerElem].

    Creates a InnerElemTraverser based on scala.collection.Traversable[InnerElem].

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  48. def innerNodeDownUpTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): InnerNodeDownUpTraverser

    Creates a InnerNodeDownUpTraverser based on scala.collection.Traversable[(Boolean, NodeT)] where the Boolean parameter is true if the traversal takes place in downward and false if it takes place in upward direction.

    Creates a InnerNodeDownUpTraverser based on scala.collection.Traversable[(Boolean, NodeT)] where the Boolean parameter is true if the traversal takes place in downward and false if it takes place in upward direction.

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals. A kind different from DepthFirst will be ignored.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  49. def innerNodeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): InnerNodeTraverser

    Creates a InnerNodeTraverser based on scala.collection.Traversable[NodeT].

    Creates a InnerNodeTraverser based on scala.collection.Traversable[NodeT].

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  50. final def isAcyclic: Boolean

    Whether this graph has no cycle.

    Whether this graph has no cycle.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  51. def isComplete: Boolean

    Whether all nodes are pairwise adjacent.

    Whether all nodes are pairwise adjacent.

    returns

    true if this graph is complete, false if this graph contains any independent nodes.

    Definition Classes
    GraphTraversal
  52. def isConnected: Boolean

    Whether this graph is connected if it is undirected or weakly connected if it is directed.

    Whether this graph is connected if it is undirected or weakly connected if it is directed.

    Definition Classes
    GraphTraversal
  53. final def isCustomEdgeFilter(f: (EdgeT) ⇒ Boolean): Boolean

    true if f is not equivalent to anyEdge.

    true if f is not equivalent to anyEdge.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  54. final def isCustomEdgeVisitor(v: (EdgeT) ⇒ Unit): Boolean

    true if v is not equivalent to noEdgeAction.

    true if v is not equivalent to noEdgeAction.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  55. final def isCustomNodeFilter(f: (NodeT) ⇒ Boolean): Boolean

    true if f is not equivalent to anyNode.

    true if f is not equivalent to anyNode.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  56. final def isCustomNodeUpVisitor(v: (NodeT) ⇒ Unit): Boolean

    true if v is not equivalent to noNodeUpAction.

    true if v is not equivalent to noNodeUpAction.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  57. final def isCustomNodeVisitor(v: (NodeT) ⇒ VisitorReturn): Boolean

    true if v is not equivalent to noNodeAction.

    true if v is not equivalent to noNodeAction.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  58. final def isCyclic: Boolean

    Whether this graph has at least one cycle.

    Whether this graph has at least one cycle.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  59. def isDefined: Boolean

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    Param
  60. def isEdge: Boolean

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    NodeParam
  61. def isIn: Boolean

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    InParamParam
  62. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  63. def isNode: Boolean

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    NodeParam
  64. def isOut: Boolean

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]] performed by method anyToNode in scalax.collection.GraphPredef.
    Definition Classes
    InParamParam
  65. final def isTrivial: Boolean

    true if this graph has at most 1 node.

    true if this graph has at most 1 node.

    Definition Classes
    GraphBase
    Annotations
    @inline()
  66. val n1: GraphTraversalImpl[N, E]

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

    Definition Classes
    AnyRef
  68. def newTraversal(direction: Direction = Successors, nodeFilter: (NodeT) ⇒ Boolean = anyNode, edgeFilter: (EdgeT) ⇒ Boolean = anyEdge, nodeVisitor: (NodeT) ⇒ VisitorReturn = noNodeAction, edgeVisitor: (EdgeT) ⇒ Unit = noEdgeAction, ordering: ElemOrdering = noOrdering): Traversal

    Creates a Traversal instance allowing subsequent traversals with constant filters and visitors.

    Creates a Traversal instance allowing subsequent traversals with constant filters and visitors.

    direction

    Determines which connected nodes the traversal has to follow. The default value is Successors.

    nodeFilter

    Predicate to filter the nodes to be visited during traversal. The default value is anyNode, that is no filtering. A return of true signals that the traversal is to be canceled.

    edgeFilter

    Predicate to filter the edges to be visited during traversal. The default value is anyEdge meaning that no filtering takes place.

    nodeVisitor

    Function to be called on visiting a node for the first time during a traversal. It can mutate the node or carry out any other side effect. The default value is the empty function noNodeAction. Alternatively, an instance of ExtendedNodeVisitor may be passed to obtain additional state information such as the current depth. The concrete type of the last argument, the informer depends on the underlying implementation so you need to match against it. Concerning this method please match against scalax.collection.GraphTraversalImpl.DfsInformer or scalax.collection.GraphTraversalImpl.BfsInformer depending on the breadthFirst argument.

    edgeVisitor

    Function to be called on visiting an edge. It can mutate the node or carry out any other side effect. The default value is the empty function noEdgeAction.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  69. def nextHandle: Handle

    Avoid calling this directly, prefer withHandle instead.

    Avoid calling this directly, prefer withHandle instead.

    Attributes
    protected
    Definition Classes
    State
  70. final val noEdgeAction: (EdgeT) ⇒ Unit

    Default edge visitor doing nothing (non-visitor).

    Default edge visitor doing nothing (non-visitor).

    Definition Classes
    GraphTraversal
  71. final val noNode: (NodeT) ⇒ Boolean

    Node predicate always returning false.

    Node predicate always returning false.

    Definition Classes
    GraphTraversal
  72. final val noNodeAction: (NodeT) ⇒ GraphTraversal.VisitorReturn.Value

    Default node visitor doing nothing (non-visitor).

    Default node visitor doing nothing (non-visitor).

    Definition Classes
    GraphTraversal
  73. final val noNodeUpAction: (NodeT) ⇒ Unit

    Default node-up visitor doing nothing (non-visitor).

    Default node-up visitor doing nothing (non-visitor).

    Definition Classes
    GraphTraversal
  74. final val noOrdering: NoOrdering

    Definition Classes
    GraphBase
  75. final def nonTrivial: Boolean

    true if this graph has at least 2 nodes.

    true if this graph has at least 2 nodes.

    Definition Classes
    GraphBase
    Annotations
    @inline()
  76. final def notify(): Unit

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

    Definition Classes
    AnyRef
  78. def order: Int

    The order - commonly referred to as |G| - of this graph equaling to the number of nodes.

    The order - commonly referred to as |G| - of this graph equaling to the number of nodes.

    Definition Classes
    GraphBase
  79. def outerEdgeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): OuterEdgeTraverser

    Creates a OuterEdgeTraverser based on scala.collection.Traversable[E[N]].

    Creates a OuterEdgeTraverser based on scala.collection.Traversable[E[N]].

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  80. def outerElemTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): OuterElemTraverser

    Creates a OuterElemTraverser based on scala.collection.Traversable[OuterElem].

    Creates a OuterElemTraverser based on scala.collection.Traversable[OuterElem].

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  81. def outerNodeDownUpTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): OuterNodeDownUpTraverser

    Creates a OuterNodeDownUpTraverser based on scala.collection.Traversable[(Boolean, N)] where the Boolean parameter is true if the traversal takes place in downward and false if it takes place in upward direction.

    Creates a OuterNodeDownUpTraverser based on scala.collection.Traversable[(Boolean, N)] where the Boolean parameter is true if the traversal takes place in downward and false if it takes place in upward direction.

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals. A kind different from DepthFirst will be ignored.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  82. def outerNodeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: (NodeT) ⇒ Boolean = anyNode, subgraphEdges: (EdgeT) ⇒ Boolean = anyEdge, ordering: ElemOrdering = noOrdering): OuterNodeTraverser

    Creates a OuterNodeTraverser based on scala.collection.Traversable[N].

    Creates a OuterNodeTraverser based on scala.collection.Traversable[N].

    root

    The node where subsequent graph traversals start.

    parameters

    The properties controlling subsequent traversals.

    subgraphNodes

    Restricts subsequent graph traversals to visit only nodes holding this predicate.

    subgraphEdges

    Restricts subsequent graph traversals to walk only along edges that hold this predicate.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    Definition Classes
    GraphTraversalImplGraphTraversal
  83. def releaseHandle(handle: Handle): Unit

    Avoid calling this directly, prefer withHandle instead.

    Avoid calling this directly, prefer withHandle instead.

    Attributes
    protected
    Definition Classes
    State
  84. def stringPrefix: String

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

    Definition Classes
    AnyRef
  86. def toString(): String

    Definition Classes
    AnyRef → Any
  87. def totalWeight: Long

    Definition Classes
    GraphBase
  88. val value: GraphTraversalImpl[N, E]

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

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  92. def withHandle[T](reuse: Option[Handle] = None)(block: (Handle) ⇒ T): T

    Executes a code block in the context of a new or reused state handler.

    Executes a code block in the context of a new or reused state handler.

    returns

    The result of the code block executed.

    Attributes
    protected
    Definition Classes
    State
  93. def withHandles[T](nr: Int, reuse: Array[Handle] = Array.empty[Handle])(block: (Array[Handle]) ⇒ T): T

    Executes a code block in the context nr new state handlers or alternatively in the context of the state handlers reuse.

    Executes a code block in the context nr new state handlers or alternatively in the context of the state handlers reuse.

    returns

    The result of the code block executed.

    Attributes
    protected
    Definition Classes
    State
  94. def ~[N >: N1, N2 <: N](n2: N2): UnDiEdge[N]

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

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

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to ArrowAssoc[GraphTraversalImpl[N, E]] 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[N, E] 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:
    (graphTraversalImpl: StringAdd).self
    Definition Classes
    StringAdd
  2. val self: Any

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] 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:
    (graphTraversalImpl: StringFormat).self
    Definition Classes
    StringFormat
  3. def toString(): String

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]] 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:
    (graphTraversalImpl: OuterNode[GraphTraversalImpl[N, E]]).toString()
    Definition Classes
    NodeParam → AnyRef → Any

Deprecated Value Members

  1. def findCycle(nodeFilter: (NodeT) ⇒ Boolean = anyNode, edgeFilter: (EdgeT) ⇒ Boolean = anyEdge, maxDepth: Int = 0, nodeVisitor: (NodeT) ⇒ VisitorReturn = noNodeAction, edgeVisitor: (EdgeT) ⇒ Unit = noEdgeAction, ordering: ElemOrdering = noOrdering): Option[Cycle]

    Finds a cycle in this graph taking optional filters and visitors into account.

    Finds a cycle in this graph taking optional filters and visitors into account., if any.

    nodeFilter

    Predicate to filter the nodes to be visited during traversal. The default value is anyNode, that is no filtering. A return of true signals that the traversal is to be canceled.

    edgeFilter

    Predicate to filter the edges to be visited during traversal. The default value is anyEdge meaning that no filtering takes place.

    maxDepth

    A positive value limiting the number of layers for Bfs respectively the number of consecutive child visits before siblings are visited for Dfs. 0, the default value, indicates that the traversal should have an unlimited depth meaning that it will be continued until either it's canceled or all nodes have been visited.

    nodeVisitor

    Function to be called on visiting a node for the first time during a traversal. It can mutate the node or carry out any other side effect. The default value is the empty function noNodeAction. Alternatively, an instance of ExtendedNodeVisitor may be passed to obtain additional state information such as the current depth. The concrete type of the last argument, the informer depends on the underlying implementation so you need to match against it. Concerning this method please match against scalax.collection.GraphTraversalImpl.WgbInformer.

    edgeVisitor

    Function to be called on visiting an edge. It can mutate the node or carry out any other side effect. The default value is the empty function noEdgeAction.

    ordering

    If a NodeOrdering or EdgeOrdering different from noOrdering is supplied neighbor nodes will be sorted during the traversal. Thus it is guaranteed that the smaller an element's ranking the sooner it will be processed. In case of EdgeOrdering it is guaranteed that the smaller an edge's ranking the sooner its relevant end(s) will be processed.

    returns

    A cycle or None if either

    1. there exists no cycle in this graph or
    2. there exists a cycle in this graph but due to the given filtering conditions or a Cancel return by a visitor this cycle had to be disregarded.
    Definition Classes
    GraphTraversal
    Annotations
    @deprecated
    Deprecated

    (Since version 1.8.0) Use componentTraverser instead.

  2. def x: GraphTraversalImpl[N, E]

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to ArrowAssoc[GraphTraversalImpl[N, E]] 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:
    (graphTraversalImpl: ArrowAssoc[GraphTraversalImpl[N, E]]).x
    Definition Classes
    ArrowAssoc
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use leftOfArrow instead

  3. def x: GraphTraversalImpl[N, E]

    Implicit information
    This member is added by an implicit conversion from GraphTraversalImpl[N, E] to Ensuring[GraphTraversalImpl[N, E]] 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:
    (graphTraversalImpl: Ensuring[GraphTraversalImpl[N, E]]).x
    Definition Classes
    Ensuring
    Annotations
    @deprecated
    Deprecated

    (Since version 2.10.0) Use resultOfEnsuring instead

Inherited from State[N, E]

Inherited from GraphTraversal[N, E]

Inherited from GraphBase[N, E]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Inherited by implicit conversion anyToNode from GraphTraversalImpl[N, E] to OuterNode[GraphTraversalImpl[N, E]]

Inherited by implicit conversion EdgeAssoc from GraphTraversalImpl[N, E] to EdgeAssoc[GraphTraversalImpl[N, E]]

Inherited by implicit conversion any2stringadd from GraphTraversalImpl[N, E] to StringAdd

Inherited by implicit conversion any2stringfmt from GraphTraversalImpl[N, E] to StringFormat

Inherited by implicit conversion any2ArrowAssoc from GraphTraversalImpl[N, E] to ArrowAssoc[GraphTraversalImpl[N, E]]

Inherited by implicit conversion any2Ensuring from GraphTraversalImpl[N, E] to Ensuring[GraphTraversalImpl[N, E]]

Ungrouped