javautils.graph
Interface GraphBuilder


public interface GraphBuilder

A Builder for Graphs (see [Gamma1995]).


Method Summary
 void addEdge(java.lang.Object sourceNodeID, java.lang.Object targetNodeID, java.lang.Object edgeID)
          Adds the edge identified by edgeID, along with identifiers for edge source and target.
 void addNode(java.lang.Object nodeID)
          Adds the node identified by nodeID, but only if there is no node identified by an equal Object already.
 java.lang.Object object(java.lang.Object id)
          The object identified by id.
 

Method Detail

addNode

public void addNode(java.lang.Object nodeID)

Adds the node identified by nodeID, but only if there is no node identified by an equal Object already.


addEdge

public void addEdge(java.lang.Object sourceNodeID,
                    java.lang.Object targetNodeID,
                    java.lang.Object edgeID)

Adds the edge identified by edgeID, along with identifiers for edge source and target.

If there is already an edge for which edgeID is equal, no new edge is inserted.


object

public java.lang.Object object(java.lang.Object id)

The object identified by id.