T - the type of the objects being stored in the graphpublic static class DirectedGraph.Edge<T> extends Object
| Modifier and Type | Field and Description |
|---|---|
DirectedGraph.Node<T> |
from
The node this edge starts from
|
DirectedGraph.Node<T> |
to
The node this edge goes to
|
| Constructor and Description |
|---|
Edge(DirectedGraph.Node<T> from,
DirectedGraph.Node<T> to)
Creates a new edge.
|
public final DirectedGraph.Node<T> from
public final DirectedGraph.Node<T> to
public Edge(DirectedGraph.Node<T> from, DirectedGraph.Node<T> to)
from - the start nodeto - the end node