public class SimpleDirectedGraph<T> extends Object implements DirectedGraph<T>
| Constructor and Description |
|---|
SimpleDirectedGraph() |
SimpleDirectedGraph(DirectedGraph<T> other) |
| Modifier and Type | Method and Description |
|---|---|
void |
addEdge(T tail,
T head) |
void |
forOutEdges(T tail,
java.util.function.Consumer<T> headVisitor) |
void |
forVertices(java.util.function.Consumer<T> visitor) |
boolean |
isFullyConnected() |
public SimpleDirectedGraph()
public SimpleDirectedGraph(DirectedGraph<T> other)
public void forVertices(java.util.function.Consumer<T> visitor)
forVertices in interface DirectedGraph<T>public void forOutEdges(T tail, java.util.function.Consumer<T> headVisitor)
forOutEdges in interface DirectedGraph<T>public boolean isFullyConnected()
Copyright © 2016. All Rights Reserved.