|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface UndirectedMutableLongGraph.Edge
The extension of UndirectedLongGraph.Edge
to be mutable.
Method Summary | |
---|---|
UndirectedMutableLongGraph.Edge |
clone()
Clone this edge. |
double |
remove()
Remove this edge. |
double |
setWeight(double weight)
Set the weight of this edge. |
Methods inherited from interface de.aitools.aq.graph.weighted.UndirectedLongGraph.Edge |
---|
exists, getVertexA, getVertexB, getWeight, isConnectedTo |
Method Detail |
---|
double setWeight(double weight)
UndirectedMutableLongGraph.setEdgeWeight(long, long, double)
using the two vertices of this edge as parameter.UndirectedLongGraph.getUnconnectedWeight()
should be the
same as calling remove()
.
weight
- The new weight of the edge.
UndirectedLongGraph.getUnconnectedWeight()
if the
edge
had not existed (see UndirectedLongGraph.Edge.exists()
).
java.util.NoSuchElementException
- If at least one of the two vertices is
not a part of the graph any more
(see UndirectedLongGraph.containsVertex(long)
).double remove()
UndirectedMutableLongGraph.removeEdge(long, long)
using the two vertices of this edge as parameter.
UndirectedLongGraph.getUnconnectedWeight()
if the edge
had not existed (see UndirectedLongGraph.Edge.exists()
).
java.util.NoSuchElementException
- If at least one of the two vertices is
not a part of the graph any more
(see UndirectedLongGraph.containsVertex(long)
).UndirectedMutableLongGraph.Edge clone()
UndirectedLongGraph.Edge
clone
in interface UndirectedLongGraph.Edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |