|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ed.inf.graph.impl.Edge
public final class Edge
Constructor Summary | |
---|---|
Edge(Graph graph,
int index,
Node oneNode,
Node twoNode)
|
Method Summary | |
---|---|
int |
compareTo(Edge o)
|
boolean |
equals(java.lang.Object obj)
|
NodePair |
getConnectedNodes()
Get the ends of |
Graph |
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 Node,? super Edge> ends)
Tests if this edge has these ends. |
int |
hashCode()
|
boolean |
isRemoved()
Test if the edge has been removed from the graph. |
boolean |
isSelfEdge()
Is this a self edge, i.e. |
void |
markRemoved(boolean markRemoved)
Used to reset the removal status of a graph edge or node. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
Edge(Graph graph, int index, Node oneNode, Node twoNode)
Method Detail |
---|
public NodePair getConnectedNodes()
IBasicEdge
getConnectedNodes
in interface IBasicEdge<Node,Edge>
getConnectedNodes
in interface IUndirectedEdge<Node,Edge>
public Graph getGraph()
IBasicEdge
getGraph
in interface IBasicEdge<Node,Edge>
getGraph
in interface IUndirectedEdge<Node,Edge>
public int getIndex()
IBasicEdge
getIndex
in interface IBasicEdge<Node,Edge>
public boolean isSelfEdge()
IBasicEdge
isSelfEdge
in interface IBasicEdge<Node,Edge>
true
if removed.public int compareTo(Edge o)
compareTo
in interface java.lang.Comparable<Edge>
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean isRemoved()
IBasicEdge
isRemoved
in interface IBasicEdge<Node,Edge>
true
if removed, false otherwise.public void markRemoved(boolean markRemoved)
IRestorableGraphElement
markRemoved
in interface IRestorableGraphElement
public boolean hasEnds(IBasicPair<? super Node,? super Edge> ends)
IBasicEdge
hasEnds
in interface IBasicEdge<Node,Edge>
ends
- The ends to be tested.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |