|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.amino.ds.graph.Edge<E>
E
- type element in nodepublic class Edge<E>
Edge in the graph.
Constructor Summary | |
---|---|
Edge(Node<E> start,
Node<E> end)
Constructor an edge with default edge 1. |
|
Edge(Node<E> start,
Node<E> end,
double weight)
Construct an edge with weight. |
Method Summary | |
---|---|
Node<E> |
getEnd()
|
Node<E> |
getStart()
|
double |
getWeight()
|
void |
setWeight(double weight)
set weight of this edge. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Edge(Node<E> start, Node<E> end)
start
- start nodeend
- end nodepublic Edge(Node<E> start, Node<E> end, double weight)
start
- start nodeend
- end nodeweight
- weight on edgeMethod Detail |
---|
public Node<E> getStart()
public Node<E> getEnd()
public double getWeight()
public void setWeight(double weight)
weight
- weight to be set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |