public class BasicDirectedGraphBuilder extends BasicGraphBuilder
DirectedGraph
Constructor and Description |
---|
BasicDirectedGraphBuilder() |
Modifier and Type | Method and Description |
---|---|
void |
addEdge(Edge edge)
Adds a directed edge to the graph.
|
Edge |
buildEdge(Node nodeA,
Node nodeB)
Builds a directed edge.
|
protected Graph |
buildGraph()
Creates a directed graph object.
|
Node |
buildNode()
Builds a directed node.
|
addNode, clone, getEdges, getGraph, getNodes, importGraph, removeEdge, removeEdges, removeNode, removeNodes
public Node buildNode()
buildNode
in interface GraphBuilder
buildNode
in class BasicGraphBuilder
DirectedNode
,
GraphBuilder.buildNode()
public Edge buildEdge(Node nodeA, Node nodeB)
buildEdge
in interface GraphBuilder
buildEdge
in class BasicGraphBuilder
nodeA
- Adjacent node to edge.nodeB
- Adjacent node to edge.DirectedEdge
,
GraphBuilder#buildEdge()
public void addEdge(Edge edge)
addEdge
in interface GraphBuilder
addEdge
in class BasicGraphBuilder
edge
- Edge to be added to graph.DirectedEdge
,
GraphBuilder.addEdge(Edge)
protected Graph buildGraph()
buildGraph
in class BasicGraphBuilder
Copyright © 1996–2019 Geotools. All rights reserved.