|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.aduna.clustermap.graph.Edge
public class Edge
An Edge connects two Vertices in a Graph.
Vertex,
Graph| Constructor Summary | |
|---|---|
Edge()
Create a new Edge with initially no connected Vertices. |
|
Edge(Vertex source,
Vertex destination)
Create a new Edge connecting the specified Vertices. |
|
| Method Summary | |
|---|---|
boolean |
connects(Vertex vertex1,
Vertex vertex2)
Determines whether this Edge connects the two specified Vertices. |
Vertex |
getDestination()
|
Object |
getLayoutAttribute()
|
Vertex |
getOtherVertex(Vertex vertex)
Given one of the Vertices connected by this Edge, this method returns the other one. |
Vertex |
getSource()
|
boolean |
isConnectedTo(Vertex vertex)
Determines whether the specified Vertex is connected to this Edge. |
void |
setDestination(Vertex destination)
|
void |
setLayoutAttribute(Object layoutAttribute)
|
void |
setSource(Vertex source)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Edge()
public Edge(Vertex source,
Vertex destination)
| Method Detail |
|---|
public Vertex getSource()
public void setSource(Vertex source)
public Vertex getDestination()
public void setDestination(Vertex destination)
public Object getLayoutAttribute()
public void setLayoutAttribute(Object layoutAttribute)
public boolean isConnectedTo(Vertex vertex)
public boolean connects(Vertex vertex1,
Vertex vertex2)
public Vertex getOtherVertex(Vertex vertex)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||