|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public static interface UndirectedMutableIntGraph.Edge
The extension of UndirectedIntGraph.Edge
to be mutable.
Method Summary | |
---|---|
UndirectedMutableIntGraph.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.UndirectedIntGraph.Edge |
---|
exists, getVertexA, getVertexB, getWeight, isConnectedTo |
Method Detail |
---|
double setWeight(double weight)
UndirectedMutableIntGraph.setEdgeWeight(int, int, double)
using the two vertices of this edge as parameter.UndirectedIntGraph.getUnconnectedWeight()
should be the
same as calling remove()
.
weight
- The new weight of the edge.
UndirectedIntGraph.getUnconnectedWeight()
if the
edge
had not existed (see UndirectedIntGraph.Edge.exists()
).
java.util.NoSuchElementException
- If at least one of the two vertices is
not a part of the graph any more
(see UndirectedIntGraph.containsVertex(int)
).double remove()
UndirectedMutableIntGraph.removeEdge(int, int)
using the two vertices of this edge as parameter.
UndirectedIntGraph.getUnconnectedWeight()
if the edge
had not existed (see UndirectedIntGraph.Edge.exists()
).
java.util.NoSuchElementException
- If at least one of the two vertices is
not a part of the graph any more
(see UndirectedIntGraph.containsVertex(int)
).UndirectedMutableIntGraph.Edge clone()
UndirectedIntGraph.Edge
clone
in interface UndirectedIntGraph.Edge
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |