public class Edge
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Edge.Kind |
Modifier and Type | Field and Description |
---|---|
Vertex |
end |
Edge.Kind |
kind |
Vertex |
start |
int |
weight |
Constructor and Description |
---|
Edge(Vertex start,
Vertex end)
Creates a directed edge.
|
Edge(Vertex start,
Vertex end,
Edge.Kind kind)
Creates an edge with the specified kind, directed or undirected.
|
Edge(Vertex start,
Vertex end,
int weight,
Edge.Kind kind)
Creates an edge with the specified weight and kind (directed or undirected).
|