Trait/Object

scalax.collection

GraphTraversal

Related Docs: object GraphTraversal | package collection

Permalink

trait GraphTraversal[N, E[X] <: EdgeLikeIn[X]] extends GraphBase[N, E]

Graph-related functionality such as traversals, path finding, cycle detection etc. All algorithms including breadth-first, depth-first, white-gray-black search and Dijkstra's algorithm are tail recursive.

Before starting a traversal a Traverser such as scalax.collection.GraphTraversal#InnerNodeTraverser is instantiated explicitly or implicitly. It holds settings like maxDepth, subgraph or ordering providing a fine-grained control of the traversal. Traversers also extend scala.collection.Traversable meaning that you can process the visited nodes and edges in a functional way.

Self Type
GraphTraversal[N, E]
See also

http://www.scala-graph.org/guides/core-traversing

Linear Supertypes
GraphBase[N, E], Serializable, Serializable, AnyRef, Any
Known Subclasses
Type Hierarchy Learn more about scaladoc diagrams
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. GraphTraversal
  2. GraphBase
  3. Serializable
  4. Serializable
  5. AnyRef
  6. Any
Implicitly
  1. by anyToNode
  2. by CollectionsHaveToParArray
  3. by EdgeAssoc
  4. by any2stringadd
  5. by StringFormat
  6. by Ensuring
  7. by ArrowAssoc
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Type Members

  1. sealed abstract class AbstractTopologicalOrder[+A, +T] extends AbstractTraversable[T]

    Permalink

    Topologically ordered nodes or layers of a topological order of a graph or of an isolated graph component.

    Topologically ordered nodes or layers of a topological order of a graph or of an isolated graph component.

    A

    one of NodeT, N

    T

    one of A or (Int, Iterable[A])

  2. abstract class Component extends Properties

    Permalink

    Represents a component of this graph with an underlying lazy implementation.

    Represents a component of this graph with an underlying lazy implementation. Instances will be created by traversals based on componentTraverser.

    Attributes
    protected
  3. abstract class ComponentTraverser extends FluentProperties[ComponentTraverser] with Properties with Traversable[Component]

    Permalink

    Controls the properties of graph traversals with no specific root.

    Controls the properties of graph traversals with no specific root. Provides methods to refine the properties and to invoke multiple traversals to span all graph components.

    Attributes
    protected
  4. trait Cycle extends Path

    Permalink

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

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

    cycle ::= start-end-node { edge node } edge start-end-node

    All nodes and edges on the path are distinct except the start and end nodes that are equal. A cycle contains at least a start node followed by any number of consecutive pairs of an edge and a node and the end node equaling to the start node. The first element is the start node, the second is an edge with its tail being the start node and its head being the third element etc.

  5. type CycleNodeOrTopologicalOrder = Either[NodeT, TopologicalOrder[NodeT]]

    Permalink

    Either a Right containing a valid topological order or a Left containing a node on a cycle.

  6. trait Edge extends Serializable

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

    Permalink
    Definition Classes
    GraphBase
  8. type EdgeFilter = (EdgeT) ⇒ Boolean

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

    Permalink
    Definition Classes
    GraphBase
  10. trait EdgeSet extends AnySet[EdgeT] with ExtSetMethods[EdgeT] with Serializable

    Permalink
    Definition Classes
    GraphBase
  11. abstract type EdgeSetT <: EdgeSet

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

    Permalink
    Definition Classes
    GraphBase
  13. sealed trait ElemOrdering extends AnyRef

    Permalink

    Base trait for graph Orderings.

    Base trait for graph Orderings.

    Attributes
    protected
    Definition Classes
    GraphBase
  14. trait ExtendedNodeVisitor[U] extends (NodeT) ⇒ U with (NodeT, Int, Int, ⇒ NodeInformer) ⇒ U

    Permalink

    Template for extended node visitors.

    Template for extended node visitors. While the default node visitor of the type NodeT => U passes solely the inner node being visited, extended node visitors pass the following traversal state information:

    1. the inner node currently visited as with a standard node visitor
    2. the number of nodes visited so far and
    3. the current depth in terms of the underlying algorithm and
    4. a reference to a specific informer that may be pattern matched to collect even further data specific to the implementation.
  15. abstract class FluentProperties[+This <: FluentProperties[This]] extends AnyRef

    Permalink

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

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

    Attributes
    protected
  16. trait InnerEdge extends Iterable[NodeT] with InnerEdgeParam[N, E, NodeT, E] with Edge with InnerElem

    Permalink
    Definition Classes
    GraphBase
  17. abstract class InnerEdgeTraverser extends TraverserMethods[EdgeT, InnerEdgeTraverser] with Traverser[EdgeT, InnerEdgeTraverser]

    Permalink

    Controls the properties of inner-edge graph traversals.

    Controls the properties of inner-edge graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  18. sealed trait InnerElem extends AnyRef

    Permalink
    Definition Classes
    GraphBase
  19. abstract class InnerElemTraverser extends TraverserMethods[InnerElem, InnerElemTraverser] with Traverser[InnerElem, InnerElemTraverser]

    Permalink

    Controls the properties of inner-element graph traversals.

    Controls the properties of inner-element graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

    Attributes
    protected
  20. trait InnerNode extends InnerNodeParam[N] with Node with InnerElem

    Permalink
    Definition Classes
    GraphBase
  21. abstract class InnerNodeDownUpTraverser extends TraverserMethods[(Boolean, NodeT), InnerNodeDownUpTraverser] with Traverser[(Boolean, NodeT), InnerNodeDownUpTraverser]

    Permalink

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

    Controls the properties of inner-node down-up graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  22. abstract class InnerNodeTraverser extends TraverserMethods[NodeT, InnerNodeTraverser] with Traverser[NodeT, InnerNodeTraverser]

    Permalink

    Controls the properties of inner-node graph traversals.

    Controls the properties of inner-node graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  23. case class Layer(index: Int, nodes: IndexedSeq[NodeT]) extends Product with Serializable

    Permalink

    Represents a topological sort layer.

  24. final class LayeredTopologicalOrder[+A] extends AbstractTopologicalOrder[A, (Int, Iterable[A])]

    Permalink

    Layers of a topological order of a graph or of an isolated graph component.

    Layers of a topological order of a graph or of an isolated graph component. The layers of a topological sort can roughly be defined as follows:

    1. layer 0 contains all nodes having no predecessors,
    2. layer n contains those nodes that have only predecessors in anchestor layers with at least one of them contained in layer n - 1
    A

    one of NodeT, N

  25. type Layers = Traversable[Layer]

    Permalink

    The result of a topological sort in the layered view.

  26. trait Node extends Serializable

    Permalink
    Definition Classes
    GraphBase
  27. abstract class NodeBase extends InnerNode

    Permalink
    Attributes
    protected
    Definition Classes
    GraphBase
  28. type NodeFilter = (NodeT) ⇒ Boolean

    Permalink
    Definition Classes
    GraphBase
  29. sealed trait NodeOrdering extends Ordering[NodeT] with ElemOrdering

    Permalink

    Ordering for the path dependent type NodeT.

    Ordering for the path dependent type NodeT.

    Definition Classes
    GraphBase
  30. trait NodeSet extends AnySet[NodeT] with ExtSetMethods[NodeT] with Serializable

    Permalink
    Definition Classes
    GraphBase
  31. abstract type NodeSetT <: NodeSet

    Permalink
    Definition Classes
    GraphBase
  32. abstract type NodeT <: TraverserInnerNode

    Permalink
    Definition Classes
    GraphTraversalGraphBase
  33. abstract class OuterEdgeTraverser extends TraverserMethods[E[N], OuterEdgeTraverser] with Traverser[E[N], OuterEdgeTraverser]

    Permalink

    Controls the properties of outer-edge graph traversals.

    Controls the properties of outer-edge graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  34. trait OuterElemTraverser extends TraverserMethods[OuterElem[N, E], OuterElemTraverser] with Traverser[OuterElem[N, E], OuterElemTraverser]

    Permalink

    Controls the properties of outer-element graph traversals.

    Controls the properties of outer-element graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  35. abstract class OuterNodeDownUpTraverser extends TraverserMethods[(Boolean, N), OuterNodeDownUpTraverser] with Traverser[(Boolean, N), OuterNodeDownUpTraverser]

    Permalink

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

    Controls the properties of outer-node down-up graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  36. abstract class OuterNodeTraverser extends TraverserMethods[N, OuterNodeTraverser] with Traverser[N, OuterNodeTraverser]

    Permalink

    Controls the properties of outer-node graph traversals.

    Controls the properties of outer-node graph traversals. To start a traversal call one of the graph traversal methods or any appropriate method inherited from scala.collection.Traversable on this instance.

  37. trait Path extends Walk

    Permalink

    Represents a path in this graph where

    Represents a path in this graph where

    path ::= node { edge node }

    Nodes and edges on the path are distinct. A walk/path contains at least one node followed by any number of consecutive pairs of an edge and a node. The first element is the start node, the second is an edge with its source being the start node and its target being the third element etc.

  38. trait PathBuilder extends WalkBuilder with Builder[InnerElem, Path]

    Permalink

    A Builder for valid paths in this graph.

    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.

  39. trait Properties extends SubgraphProperties

    Permalink

    Properties controlling traversals.

    Properties controlling traversals.

    Attributes
    protected
  40. trait SubgraphProperties extends AnyRef

    Permalink

    Properties controlling the scope of traversals.

    Properties controlling the scope of traversals.

    Attributes
    protected
  41. final class TopologicalOrder[+A] extends AbstractTopologicalOrder[A, A]

    Permalink

    A traversable topological order of nodes of a graph or of an isolated graph component.

    A traversable topological order of nodes of a graph or of an isolated graph component.

    A

    one of NodeT, N

  42. trait Traverser[A, +This <: Traverser[A, This]] extends TraverserMethods[A, This] with Properties with Traversable[A]

    Permalink

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

    Controls the properties of consecutive graph traversals starting at a root node. Provides methods to refine the properties and to invoke traversals. Instances will be created by innerNodeTraverser etc.

  43. trait TraverserInnerNode extends InnerNode

    Permalink
  44. abstract class TraverserMethods[A, +This <: TraverserMethods[A, This]] extends FluentProperties[This]

    Permalink

    The root-related methods Traverser will inherit.

    The root-related methods Traverser will inherit.

    Attributes
    protected
  45. trait Walk extends Traversable[InnerElem]

    Permalink

    Represents a walk in this graph where walk ::= node { edge node } A walk/path contains at least one node followed by any number of consecutive pairs of an edge and a node.

    Represents a walk in this graph where walk ::= node { edge node } A walk/path contains at least one node followed by any number of consecutive pairs of an edge and a node. The first element is the start node, the second is an edge with its source being the start node and its target being the third element etc.

  46. trait WalkBuilder extends Builder[InnerElem, Walk]

    Permalink

    A Builder for valid walks in this graph.

    A Builder for valid walks 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 walk.

    A node addition fails if the node to be added 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 the edge to be added 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.

Abstract Value Members

  1. abstract def componentTraverser(parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): ComponentTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  2. abstract def edges: EdgeSetT

    Permalink

    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
  3. abstract def innerEdgeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): InnerEdgeTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  4. abstract def innerElemTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): InnerElemTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  5. abstract def innerNodeDownUpTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): InnerNodeDownUpTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  6. abstract def innerNodeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): InnerNodeTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  7. abstract def isDirected: Boolean

    Permalink
    Definition Classes
    GraphBase
  8. abstract def isHyper: Boolean

    Permalink
    Definition Classes
    GraphBase
  9. abstract def isMulti: Boolean

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

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

    Permalink
    Attributes
    protected
    Definition Classes
    GraphBase
  12. abstract def newPathBuilder(start: NodeT)(implicit sizeHint: Int = defaultPathSize, edgeSelector: (NodeT, NodeT) ⇒ Option[EdgeT] = anyEdgeSelector): PathBuilder

    Permalink

    Instantiates a PathBuilder for this graph.

    Instantiates a PathBuilder for this graph.

    start

    The node this path starts at.

    sizeHint

    Expected maximum number of nodes on this path.

    edgeSelector

    Determines the edge to be selected between neighbor nodes if an edge is not supplied explicitly. This is only relevant in case of multigraphs.

  13. abstract def newWalkBuilder(start: NodeT)(implicit sizeHint: Int = defaultPathSize, edgeSelector: (NodeT, NodeT) ⇒ Option[EdgeT] = anyEdgeSelector): WalkBuilder

    Permalink

    Instantiates a WalkBuilder for this graph.

    Instantiates a WalkBuilder for this graph.

    start

    The node this walk starts at.

    sizeHint

    Expected maximum number of nodes on this walk.

    edgeSelector

    Determines the edge to be selected between neighbor nodes if an edge is not supplied explicitly. This is only relevant in case of multigraphs.

  14. abstract def nodes: NodeSetT

    Permalink

    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
  15. abstract def outerEdgeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): OuterEdgeTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  16. abstract def outerElemTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): OuterElemTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  17. abstract def outerNodeDownUpTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): OuterNodeDownUpTraverser

    Permalink

    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 visited during the traversal according to this ordering.

  18. abstract def outerNodeTraverser(root: NodeT, parameters: Parameters = Parameters(), subgraphNodes: NodeFilter = anyNode, subgraphEdges: EdgeFilter = anyEdge, ordering: ElemOrdering = NoOrdering): OuterNodeTraverser

    Permalink

    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 visited during the traversal according to this ordering.

Concrete Value Members

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

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from GraphTraversal[N, E] to any2stringadd[GraphTraversal[N, E]] performed by method any2stringadd in scala.Predef.
    Definition Classes
    any2stringadd
  4. def ->[B](y: B): (GraphTraversal[N, E], B)

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

    Permalink
    Definition Classes
    AnyRef → Any
  6. object Edge extends Serializable

    Permalink
    Definition Classes
    GraphBase
  7. object EdgeOrdering extends Serializable

    Permalink

    Ordering for the path dependent type EdgeT.

    Ordering for the path dependent type EdgeT.

    Definition Classes
    GraphBase
  8. object EdgeT

    Permalink
    Definition Classes
    GraphBase
  9. object ExtendedNodeVisitor

    Permalink
  10. object InnerEdge extends Serializable

    Permalink
    Definition Classes
    GraphBase
  11. object InnerNode extends Serializable

    Permalink
    Definition Classes
    GraphBase
  12. object NoOrdering extends ElemOrdering with Serializable

    Permalink

    The empty ElemOrdering.

    The empty ElemOrdering.

    Definition Classes
    GraphBase
  13. object Node extends Serializable

    Permalink
    Definition Classes
    GraphBase
  14. object NodeOrdering extends Serializable

    Permalink
    Definition Classes
    GraphBase
  15. object Path extends Serializable

    Permalink
  16. object SubgraphProperties

    Permalink
    Attributes
    protected
  17. object TraverserInnerNode extends Serializable

    Permalink
  18. object Walk

    Permalink
  19. final val anyEdge: EdgeFilter

    Permalink

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

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

    Definition Classes
    GraphBase
  20. final def anyEdgeSelector(from: NodeT, to: NodeT): Option[EdgeT]

    Permalink

    An arbitrary edge between from and to that is available most efficiently.

    An arbitrary edge between from and to that is available most efficiently.

    Annotations
    @inline()
  21. final val anyNode: NodeFilter

    Permalink

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

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

    Definition Classes
    GraphBase
  22. final lazy val anyOrdering: AnyOrdering[N]

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

    Permalink
    Definition Classes
    Any
  24. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  25. final lazy val defaultEdgeOrdering: EdgeOrdering

    Permalink
    Definition Classes
    GraphBase
  26. final lazy val defaultNodeOrdering: NodeOrdering

    Permalink
    Definition Classes
    GraphBase
  27. final def defaultPathSize: Int

    Permalink
    Attributes
    protected
    Annotations
    @inline()
  28. implicit final def edgeToEdgeCont(e: E[N]): E[NodeT]

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

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

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

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

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

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

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

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  36. final def findCycle[U](implicit visitor: (InnerElem) ⇒ U = empty): Option[Cycle]

    Permalink

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

    Finds a cycle in this graph in any of its components and calls visitor for each inner element visited during the search. See componentTraverser for more control by means of FluentProperties.

  37. def formatted(fmtstr: String): String

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

    Permalink
    Definition Classes
    AnyRef → Any
  39. def graphSize: Int

    Permalink

    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
  40. def hashCode(): Int

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

    Permalink

    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
  42. final def isAcyclic: Boolean

    Permalink

    Whether this graph has no cycle.

    Whether this graph has no cycle.

    Annotations
    @inline()
  43. def isComplete: Boolean

    Permalink

    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.

  44. def isConnected: Boolean

    Permalink

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

  45. final def isCustomEdgeFilter(f: EdgeFilter): Boolean

    Permalink

    true if f is not equivalent to anyEdge.

    true if f is not equivalent to anyEdge.

    Definition Classes
    GraphBase
    Annotations
    @inline()
  46. final def isCustomNodeFilter(f: NodeFilter): Boolean

    Permalink

    true if f is not equivalent to anyNode.

    true if f is not equivalent to anyNode.

    Definition Classes
    GraphBase
    Annotations
    @inline()
  47. final def isCyclic: Boolean

    Permalink

    Whether this graph has at least one cycle in any of its components.

    Whether this graph has at least one cycle in any of its components.

    Annotations
    @inline()
  48. def isDefined: Boolean

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

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

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

    Permalink
    Definition Classes
    Any
  52. def isNode: Boolean

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

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

    Permalink

    true if this graph has at most 1 node.

    true if this graph has at most 1 node.

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

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

    Permalink
    Definition Classes
    AnyRef
  57. final val noNode: NodeFilter

    Permalink

    Node predicate always returning false.

    Node predicate always returning false.

    Definition Classes
    GraphBase
  58. final def nonTrivial: Boolean

    Permalink

    true if this graph has at least 2 nodes.

    true if this graph has at least 2 nodes.

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

    Permalink
    Definition Classes
    AnyRef
  60. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  61. def order: Int

    Permalink

    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
  62. def stringPrefix: String

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

    Permalink
    Definition Classes
    AnyRef
  64. def toParArray: ParArray[T]

    Permalink
    Implicit information
    This member is added by an implicit conversion from GraphTraversal[N, E] to CollectionsHaveToParArray[GraphTraversal[N, E], T] performed by method CollectionsHaveToParArray in scala.collection.parallel. This conversion will take place only if an implicit value of type (GraphTraversal[N, E]) ⇒ GenTraversableOnce[T] is in scope.
    Definition Classes
    CollectionsHaveToParArray
  65. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  66. final def topologicalSort[U](implicit visitor: (InnerElem) ⇒ U = empty): CycleNodeOrTopologicalOrder

    Permalink

    Sorts this graph topologically.

    Sorts this graph topologically.

    visitor

    called for each inner node or inner edge visited during the sort. See componentTraverser for more control by means of FluentProperties.

  67. final def topologicalSortByComponent[U](implicit visitor: (InnerElem) ⇒ U = empty): Traversable[CycleNodeOrTopologicalOrder]

    Permalink

    Sorts every isolated component of this graph topologically.

    Sorts every isolated component of this graph topologically.

    visitor

    called for each inner node or inner edge visited during the sort. See componentTraverser for more control by means of FluentProperties.

  68. def totalWeight: Long

    Permalink
    Definition Classes
    GraphBase
  69. val value: GraphTraversal[N, E]

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

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

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

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

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

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

    Permalink
    Implicit information
    This member is added by an implicit conversion from GraphTraversal[N, E] to ArrowAssoc[GraphTraversal[N, E]] performed by method ArrowAssoc in scala.Predef.
    Definition Classes
    ArrowAssoc

Shadowed Implicit Value Members

  1. def toString(): String

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

Inherited from GraphBase[N, E]

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

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

Inherited by implicit conversion CollectionsHaveToParArray from GraphTraversal[N, E] to CollectionsHaveToParArray[GraphTraversal[N, E], T]

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

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

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

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

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

Ungrouped