giny.model
Interface Edge


public interface Edge


Method Summary
 java.lang.String getIdentifier()
           
 RootGraph getRootGraph()
           
 int getRootGraphIndex()
           
 Node getSource()
           
 Node getTarget()
           
 boolean isDirected()
           
 boolean setIdentifier(java.lang.String new_id)
          There is no check to make sure that this is a unique id
 

Method Detail

getSource

public Node getSource()
Returns:
the GraphNode corresponding to the source of this GraphEdge.

getTarget

public Node getTarget()
Returns:
the GraphNode corresponding to the target of this GraphEdge.

isDirected

public boolean isDirected()
Returns:
true if this Edge is a directed edge; false otherwise.

getRootGraph

public RootGraph getRootGraph()
Returns:
the RootGraph that this Node is in

getRootGraphIndex

public int getRootGraphIndex()
Returns:
the index in the RootGraph of this Edge

getIdentifier

public java.lang.String getIdentifier()
Returns:
The Unique Identifier of this node

setIdentifier

public boolean setIdentifier(java.lang.String new_id)
There is no check to make sure that this is a unique id

Parameters:
new_id - The new Identifier for this node