public interface GraphBuilder
Graph
,
GraphGenerator
Modifier and Type  Method and Description 

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.

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(Collection edges)
Removes a collection of edges from the graph.

void 
removeNode(Node node)
Removes an node from the graph.

void 
removeNodes(Collection nodes)
Removes a collection of nodes from the graph.

Graph getGraph()
Node buildNode()
Edge buildEdge(Node nodeA, Node nodeB)
nodeA
 Adjacent node to edge.nodeB
 Adjacent node to edge.void addNode(Node node)
node
 Node to be added to graph.void addEdge(Edge edge)
edge
 Edge to be added to graph.void removeNode(Node node)
node
 Node to be removed from graph.void removeNodes(Collection nodes)
nodes
 A collection of nodes to be removed from the graph.void removeEdge(Edge edge)
edge
 Edge to be removed from graph.void removeEdges(Collection edges)
edges
 Collection of edges to be removed from the graph.Object clone(boolean deep) throws Exception
deep
 Deep or non deep clone.Exception
void importGraph(Graph g)
g
 A pre built graph.Copyright © 1996–2023 Geotools. All rights reserved.