at.jku.ssw
Class Edge
java.lang.Object
at.jku.ssw.Edge
public class Edge
- extends java.lang.Object
An edge of a graph.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
start
public final Vertex start
end
public final Vertex end
weight
public final int weight
kind
public final Edge.Kind kind
Edge
public Edge(Vertex start,
Vertex end)
- Creates a directed edge.
Edge
public Edge(Vertex start,
Vertex end,
Edge.Kind kind)
- Creates an edge with the specified kind, directed or undirected.
Edge
public Edge(Vertex start,
Vertex end,
int weight,
Edge.Kind kind)
- Creates an edge with the specified weight and kind (directed or undirected).