|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectvisidia.misc.property.PropertyTable
visidia.graph.Edge
public class Edge
The Class Edge represents a graph edge as a link between two vertices.
Method Summary | |
---|---|
java.lang.Object |
clone()
|
Vertex |
getDestination()
Gets the destination. |
java.lang.String |
getLabel()
Gets the label. |
Vertex |
getOrigin()
Gets the origin. |
java.lang.Double |
getWeight()
Gets the weight. |
boolean |
isConnectedTo(Vertex v)
Checks if this edge is connected to the given vertex. |
java.lang.Boolean |
isOriented()
Checks if the edge oriented. |
void |
remove()
Removes the edge, specifying to its origin and destination that they are unlinked. |
void |
resetProperties()
Reset properties. |
void |
setLabel(java.lang.String s)
Sets the label. |
void |
setOriented(boolean oriented)
Sets the orientation status. |
java.lang.Object |
setProperty(VisidiaProperty property)
Sets a property. |
void |
setWeight(double weight)
Sets the weight. |
void |
switchOriginAndDestination()
Switch origin and destination vertices. |
Methods inherited from class visidia.misc.property.PropertyTable |
---|
containsElement, entrySet, getLockOwner, getPropertyKeys, getVisidiaProperty, isPersistentProperty, locked, lockProperties, removeProperty, setProperties, setVisidiaProperty, unlockProperties |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public java.lang.Object clone()
clone
in class PropertyTable
public void switchOriginAndDestination()
public boolean isConnectedTo(Vertex v)
v
- the vertex to test connection with.
public void remove()
public Vertex getOrigin()
public Vertex getDestination()
public void resetProperties()
PropertyTable
resetProperties
in class PropertyTable
public java.lang.Object setProperty(VisidiaProperty property)
property
- the property
null
if it did not have one.public java.lang.String getLabel()
public void setLabel(java.lang.String s)
s
- the new labelpublic java.lang.Double getWeight()
public void setWeight(double weight)
weight
- the new weightpublic java.lang.Boolean isOriented()
public void setOriented(boolean oriented)
oriented
- the new orientation status
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |