

PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 
Build the physical components of a Graph. The GraphBuilder manages the
details of component creation, addition, and removal from the graph.
Graph components are created through calls to buildNode() and buildEdge(Node,
Node), and then added to the graph through calls to addNode(Node), and
addEdge(Edge).
The GraphBuilder class is the lower level of the graph construction process.
The builder does not manage the entities being modelled by the graph
components. This is done at a higher level by the GraphGenerator.
class.
Graph
,
GraphGenerator
Method Summary  
void 
addEdge(Edge edge)
Adds an edge to the graph. 
void 
addNode(Node node)
Adds a node to the graph. 
Edge 
buildEdge(Node nodeA,
Node nodeB)
Builds a new edge for the graph. 
Node 
buildNode()
Builds a new node for the graph. 
java.lang.Object 
clone(boolean deep)
Returns a clone of the builder. 
Graph 
getGraph()
Returns the graph being built. 
void 
importGraph(Graph g)
Constructs a graph builder from a pre built graph. 
void 
removeEdge(Edge edge)
Removes an edge from the graph. 
void 
removeEdges(java.util.Collection edges)
Removes a collection of edges from the graph. 
void 
removeNode(Node node)
Removes an node from the graph. 
void 
removeNodes(java.util.Collection nodes)
Removes a collection of nodes from the graph. 
Method Detail 
public Graph getGraph()
public Node buildNode()
public Edge buildEdge(Node nodeA, Node nodeB)
nodeA
 Adjacent node to edge.nodeB
 Adjacent node to edge.
public void addNode(Node node)
node
 Node to be added to graph.public void addEdge(Edge edge)
edge
 Edge to be added to graph.public void removeNode(Node node)
node
 Node to be removed from graph.public void removeNodes(java.util.Collection nodes)
nodes
 A collection of nodes to be removed from the graph.public void removeEdge(Edge edge)
edge
 Edge to be removed from graph.public void removeEdges(java.util.Collection edges)
edges
 Collection of edges to be removed from the graph.public java.lang.Object clone(boolean deep) throws java.lang.Exception
deep
 Deep or non deep clone.
java.lang.Exception
public void importGraph(Graph g)


PREV CLASS NEXT CLASS  FRAMES NO FRAMES  
SUMMARY: NESTED  FIELD  CONSTR  METHOD  DETAIL: FIELD  CONSTR  METHOD 