public class Edge
extends java.lang.Object
Constructor and Description |
---|
Edge(int id,
Vertex source,
Vertex destination,
int weight)
Create an edge.
|
Modifier and Type | Method and Description |
---|---|
Vertex |
getDestination()
Get the destination.
|
int |
getId()
Get the id.
|
Vertex |
getSource()
Get the source.
|
int |
getWeight()
Get the weight.
|
public int getId()
public Vertex getDestination()
public Vertex getSource()
public int getWeight()