Package org.geotools.graph.build.opt
Class OptGraphBuilder
- Object
-
- BasicGraphBuilder
-
- OptGraphBuilder
-
- All Implemented Interfaces:
GraphBuilder
- Direct Known Subclasses:
OptLineGraphBuilder
public class OptGraphBuilder extends BasicGraphBuilder
An implementation of GraphBuilder that builds optimized graph components.
-
-
Constructor Summary
Constructors Constructor Description OptGraphBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
buildEdge(Node nodeA, Node nodeB)
Creates an optimized edge.Node
buildNode()
Creates an optimized node.-
Methods inherited from class BasicGraphBuilder
addEdge, addNode, buildGraph, clone, getEdges, getGraph, getNodes, importGraph, removeEdge, removeEdges, removeNode, removeNodes
-
-
-
-
Method Detail
-
buildNode
public Node buildNode()
Creates an optimized node.- Specified by:
buildNode
in interfaceGraphBuilder
- Overrides:
buildNode
in classBasicGraphBuilder
- Returns:
- Node The newly built node.
- See Also:
GraphBuilder.buildNode()
,OptNode
-
buildEdge
public Edge buildEdge(Node nodeA, Node nodeB)
Creates an optimized edge.- Specified by:
buildEdge
in interfaceGraphBuilder
- Overrides:
buildEdge
in classBasicGraphBuilder
- Parameters:
nodeA
- Adjacent node to edge.nodeB
- Adjacent node to edge.- Returns:
- Edge the newly built Edge.
- See Also:
GraphBuilder#buildEdge()
,OptEdge
-
-