|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
N
- The node class that must implement the INode class.E
- The edge class that must implement this interface.public interface IBasicEdge<N extends IBasicNode<N,? extends IBasicEdge<N,?>>,E extends IBasicEdge<N,E>>
An edge in a graph. By default this is undirected.
Method Summary | |
---|---|
IBasicPair<N,E> |
getConnectedNodes()
Get the ends of |
IBasicGraph<N,E> |
getGraph()
Get the owning graph of this edge. |
int |
getIndex()
Get the index that uniquely identifies the edge within its owning graph. |
boolean |
hasEnds(IBasicPair<? super N,? super E> ends)
Tests if this edge has these ends. |
boolean |
isRemoved()
Test if the edge has been removed from the graph. |
boolean |
isSelfEdge()
Is this a self edge, i.e. |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
IBasicGraph<N,E> getGraph()
int getIndex()
IBasicPair<N,E> getConnectedNodes()
boolean isSelfEdge()
true
if removed.boolean hasEnds(IBasicPair<? super N,? super E> ends)
ends
- The ends to be tested.
boolean isRemoved()
true
if removed, false otherwise.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |