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