ExtendedNodeVisitor

scalax.collection.GraphTraversal.ExtendedNodeVisitor
See theExtendedNodeVisitor companion object
trait ExtendedNodeVisitor[U] extends NodeT => U

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.

Attributes

Companion
object
Graph
Supertypes
trait NodeT => U
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def apply(n: NodeT, cnt: Int, depth: Int, inf: => NodeInformer): U

Concrete methods

def apply(node: NodeT): U

Inherited methods

def andThen[A](g: U => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => NodeT): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1