java.lang.Comparable<GraphAbstract.GraphEdge>
public class GraphAbstract.GraphEdge extends java.lang.Object implements java.lang.Comparable<GraphAbstract.GraphEdge>
Constructor | Description |
---|---|
GraphEdge(int from,
int to,
int mileage) |
Modifier and Type | Method | Description |
---|---|---|
int |
compareTo(GraphAbstract.GraphEdge edge) |
public int compareTo(GraphAbstract.GraphEdge edge)
compareTo
in interface java.lang.Comparable<GraphAbstract.GraphEdge>