Package org.geotools.graph.build.opt
Class OptDirectedGraphBuilder
- Object
-
- BasicGraphBuilder
-
- BasicDirectedGraphBuilder
-
- OptDirectedGraphBuilder
-
- All Implemented Interfaces:
GraphBuilder
- Direct Known Subclasses:
OptDirectedLineGraphBuilder
public class OptDirectedGraphBuilder extends BasicDirectedGraphBuilder
An implementation of GraphBuilder that builds optimized directed graph components.- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
OptDirectedNode
,OptDirectedEdge
-
-
Constructor Summary
Constructors Constructor Description OptDirectedGraphBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Edge
buildEdge(Node nodeA, Node nodeB)
Creates an optimized directed edge.Node
buildNode()
Creates an optimized directed node.-
Methods inherited from class BasicDirectedGraphBuilder
addEdge, buildGraph
-
Methods inherited from class BasicGraphBuilder
addNode, clone, getEdges, getGraph, getNodes, importGraph, removeEdge, removeEdges, removeNode, removeNodes
-
-
-
-
Method Detail
-
buildNode
public Node buildNode()
Creates an optimized directed node.- Specified by:
buildNode
in interfaceGraphBuilder
- Overrides:
buildNode
in classBasicDirectedGraphBuilder
- Returns:
- Node The newly built node.
- See Also:
GraphBuilder.buildNode()
,OptDirectedNode
-
buildEdge
public Edge buildEdge(Node nodeA, Node nodeB)
Creates an optimized directed edge.- Specified by:
buildEdge
in interfaceGraphBuilder
- Overrides:
buildEdge
in classBasicDirectedGraphBuilder
- Parameters:
nodeA
- Adjacent node to edge.nodeB
- Adjacent node to edge.- Returns:
- Edge the newly built Edge.
- See Also:
GraphBuilder#buildEdge()
,OptDirectedEdge
-
-