|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.korelstar.math.graph.Cycle
public class Cycle
Represents an cycle of a graph.
Constructor Summary | |
---|---|
Cycle(java.util.Collection edges)
|
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
|
Edge |
getEdge(Node n)
Gets the Edge, whose source is a certain Node |
java.util.Collection |
getEdges()
Gets all edges in this cycle |
java.util.Set |
getNodes()
Gets all nodes, which belong to this cycle |
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Cycle(java.util.Collection edges)
Method Detail |
---|
public Edge getEdge(Node n)
n
- Node, to which the Edge is connected
public java.util.Set getNodes()
public java.util.Collection getEdges()
Edge
spublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
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 |