scalax.collection

GraphTraversalImpl

trait GraphTraversalImpl[N, E[X] <: EdgeLikeIn[X]] extends GraphTraversal[N, E] with State[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
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Type Members

  1. trait Cycle extends Path

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

  2. class CycleBuffer extends PathBuffer with Cycle

  3. trait Edge extends Serializable

    Definition Classes
    GraphBase
  4. class EdgeBase extends InnerEdge with InnerEdgeLike

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

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

    Definition Classes
    GraphBase
  7. abstract type EdgeSetT <: EdgeSet

    Definition Classes
    GraphBase
  8. abstract type EdgeT <: InnerEdge with InnerEdgeLike with Serializable

    Definition Classes
    GraphBase
  9. sealed trait ElemOrdering extends AnyRef

    Base trait for graph Orderings.

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

    Template for extended node visitors.

  11. type InnerEdge = EdgeOut[N, E, NodeT, E]

    Attributes
    protected
    Definition Classes
    GraphBase
  12. trait InnerEdgeLike extends Iterable[NodeT] with Edge

    Definition Classes
    GraphBase
  13. trait InnerNodeLike extends GraphTraversal.InnerNodeLike

    Definition Classes
    GraphTraversalGraphBase
  14. trait InnerNodeState extends AnyRef

    Definition Classes
    State
  15. trait InnerNodeTraversalImpl extends InnerNodeLike with InnerNodeState

  16. sealed class NoOrdering extends ElemOrdering

    The empty ElemOrdering.

  17. trait Node extends Serializable

    Definition Classes
    GraphBase
  18. abstract class NodeBase extends InnerNodeLike

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

    Ordering for the path dependent type NodeT.

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

    Definition Classes
    GraphBase
  21. abstract type NodeSetT <: NodeSet

    Definition Classes
    GraphBase
  22. abstract type NodeT <: InnerNodeTraversalImpl

    Definition Classes
    GraphTraversalImplGraphTraversalGraphBase
  23. trait Path extends Iterable[GraphParamOut[N, E]]

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

  24. class PathBuffer extends Path

    Serves as a buffer to be populated by graph algorithms yielding a Path.

  25. class Traversal extends GraphTraversalImpl.Traversal

    Abstract class for functional traversals.

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 newEdge(innerEdge: E[NodeT]): EdgeT

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

    Attributes
    protected
    Definition Classes
    GraphBase
  4. 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. final def ==(arg0: AnyRef): Boolean

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

    Definition Classes
    Any
  6. object CycleBuffer

  7. object Edge extends Serializable

    Definition Classes
    GraphBase
  8. object EdgeOrdering extends Serializable

    Ordering for the path dependent type EdgeT.

  9. object ExtendedNodeVisitor

    Definition Classes
    GraphTraversal
  10. object Node extends Serializable

    Definition Classes
    GraphBase
  11. object NodeOrdering extends Serializable

    Definition Classes
    GraphBase
  12. object PathBuffer

  13. 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
  14. 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
  15. final lazy val anyOrdering: AnyOrdering[N]

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

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

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

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

    Definition Classes
    GraphBase
  20. final lazy val defaultNodeOrdering: NodeOrdering

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

    Attributes
    protected
    Definition Classes
    State
  22. 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
  23. 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
  24. implicit final def edgeToEdgeCont(e: E[N]): E[NodeT]

    Attributes
    protected
    Definition Classes
    GraphBase
    Annotations
    @inline()
  25. final def eq(arg0: AnyRef): Boolean

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

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

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  28. 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 limits the number of layers for BFS respectively the number of consecutive child visits before siblings are visited for DFS. 0 - the default - indicates that the traversal should have an unlimited depth meaning that it will be continued either until it's canceled by nodeVisitor or until 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 a) there exists no cycle in this graph or b) 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
    GraphTraversalImplGraphTraversal
  29. final def findCycle: Option[Cycle]

    Same as findCycle(...) with default arguments.

    Same as findCycle(...) with default arguments.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  30. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  31. 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
  32. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  33. 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
  34. final def isAcyclic: Boolean

    Whether this graph has no cycle.

    Whether this graph has no cycle.

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

    Definition Classes
    GraphTraversal
  36. 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
  37. final def isCustomEdgeFilter(filter: (EdgeT) ⇒ Boolean): Boolean

    true if filter is not equivalent to anyEdge.

    true if filter is not equivalent to anyEdge.

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

    true if visitor is not equivalent to noEdgeAction.

    true if visitor is not equivalent to noEdgeAction.

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

    true if filter is not equivalent to anyNode.

    true if filter is not equivalent to anyNode.

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

    true if visitor is not equivalent to noNodeUpAction.

    true if visitor is not equivalent to noNodeUpAction.

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

    true if visitor is not equivalent to noNodeAction.

    true if visitor is not equivalent to noNodeAction.

    Definition Classes
    GraphTraversal
    Annotations
    @inline()
  42. 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()
  43. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  44. 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()
  45. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  46. 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
  47. def nextHandle: Handle

    Avoid calling this directly, prefer withHandle instead.

    Avoid calling this directly, prefer withHandle instead.

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

    Default edge visitor doing nothing (non-visitor).

    Default edge visitor doing nothing (non-visitor).

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

    Node predicate always returning false.

    Node predicate always returning false.

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

    Default node visitor doing nothing (non-visitor).

    Default node visitor doing nothing (non-visitor).

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

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

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

    Definition Classes
    GraphTraversal
  52. final val noOrdering: NoOrdering

    Definition Classes
    GraphBase
  53. 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()
  54. final def notify(): Unit

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

    Definition Classes
    AnyRef
  56. 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
  57. def releaseHandle(handle: Handle): Unit

    Avoid calling this directly, prefer withHandle instead.

    Avoid calling this directly, prefer withHandle instead.

    Attributes
    protected
    Definition Classes
    State
  58. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  59. def toString(): String

    Definition Classes
    AnyRef → Any
  60. def totalWeight: Long

    Definition Classes
    GraphBase
  61. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  64. 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
  65. 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

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

Ungrouped