Share via


Graph.Visitor<U> Interface

Type Parameters

U

the type of the node

protected static interface Graph.Visitor

Represents a visitor to be implemented by the consumer who want to visit the graph's nodes in DFS order by calling visit method.

Method Summary

Modifier and Type Method and Description
abstract void visitEdge(String fromKey, String toKey, Graph.EdgeType edgeType)

visit an edge.

abstract void visitNode(U node)

visit a node.

Method Details

visitEdge

public abstract void visitEdge(String fromKey, String toKey, Graph.EdgeType edgeType)

visit an edge.

Parameters:

fromKey - key of the from node
toKey - key of the to node
edgeType - the edge type

visitNode

public abstract void visitNode(U node)

visit a node.

Parameters:

node - the node to visited

Applies to