Interface TraversalStrategy<V,​E>

  • Type Parameters:
    V - the type of the decorated vertex value
    E - the type of the decorated edge value
    All Known Implementing Classes:
    DepthFirstSearchTraversalStrategy

    public interface TraversalStrategy<V,​E>

    Interface for traversal strategy

    Since:
    1.0
    Author:
    Andreas Schuler
    • Method Detail

      • traverse

        void traverse​(Visitor<V> visitor)
        Traverses through the graph
        Parameters:
        visitor - visitor is call for every vertex which is visited
      • traverse

        void traverse​(Visitor<V> vertexVisitor,
                      Visitor<E> edgeVisitor)
        Traverses through the graph
        Parameters:
        vertexVisitor - visitor which is call when a vertex is visited
        edgeVisitor - visitor which is call when an edge is visited