|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Edge
An Edge object models a directed or undirected Edge of a simple Graph. Normally, a class which implements this interface has no public constructor, but its instances are created by a factory method of the corresponding Graph class.
Method Summary | |
---|---|
NodePair |
getEnds()
Delivers both end Nodes of this Edge. |
Node |
getOtherEnd(Node v)
Delivers the end Node of an Edge different from the given one. |
Node |
getSource()
Delivers the source Node of an Edge. |
Node |
getTarget()
Delivers the target Node of an Edge. |
Methods inherited from interface de.fhstralsund.vinets.structure.Link |
---|
incidentNodes, isDirected, isUndirected |
Methods inherited from interface de.fhstralsund.vinets.structure.NetElement |
---|
clearLabels, containsLabel, getBooleanLabel, getData, getDoubleLabel, getGeometry, getHost, getID, getIntLabel, getLabel, getLabelKeySet, getName, getOriginal, getRepresentation, removeLabel, setBooleanLabel, setData, setDoubleLabel, setGeometry, setIntLabel, setLabel, setName, setRepresentation |
Method Detail |
---|
Node getSource()
getTarget()
method.
Node getTarget()
getSource()
method.
NodePair getEnds()
Node getOtherEnd(Node v)
v
- one of the end vertices of this Edge.
java.lang.IllegalArgumentException
- if v is not incident to this Edge.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |