V
- The type of the graph's verticesE
- The type of the graph's edgesO
- The type of object from which the graph's elements originatepublic abstract class AbstractGraph<V extends AbstractVertex<V,E,O>,E extends AbstractEdge<V,E,O>,O>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static interface |
AbstractGraph.IGraphVisitor<V,E>
Interface for abstract-graph visitors.
|
Constructor and Description |
---|
AbstractGraph() |
Modifier and Type | Method and Description |
---|---|
abstract java.util.Collection<V> |
getVertices()
Returns the vertices contained in this graph.
|
void |
traverse(AbstractGraph.IGraphVisitor<V,E> visitor)
Traverses this graph using the given visitor.
|
void |
traverseWithVerticesFirst(AbstractGraph.IGraphVisitor<V,E> visitor)
Traverses this graph using the given visitor.
|
public abstract java.util.Collection<V> getVertices()
public void traverse(AbstractGraph.IGraphVisitor<V,E> visitor)
visitor
- The visitor to call during traversalpublic void traverseWithVerticesFirst(AbstractGraph.IGraphVisitor<V,E> visitor)
visitor
- The visitor to call during traversalCopyright 2017 Kieker Project, http://kieker-monitoring.net