org.geotools.graph.structure.basic
Class BasicDirectedGraph
Object
BasicGraph
BasicDirectedGraph
- All Implemented Interfaces:
- Serializable, DirectedGraph, Graph
public class BasicDirectedGraph
- extends BasicGraph
- implements DirectedGraph
Basic implementation of DirectedGraph.
- Author:
- Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
- See Also:
- Serialized Form
Methods inherited from class BasicGraph |
getEdges, getNodes, getNodesOfDegree, getVisitedEdges, getVisitedNodes, initEdges, initNodes, queryEdges, queryNodes, setEdges, setNodes, toString, visitEdges, visitNodes |
BasicDirectedGraph
public BasicDirectedGraph(Collection nodes,
Collection edges)
- Creates a directed graph from a collection of directed nodes and a
collection of directed edges.
The relationships between the nodes (edges) are already assumed to be
formed. Only the references to the node and edge collections are copied,
not the underlying collections themselves.
- Parameters:
nodes
- Collection of DirectedNode objects contained by the graph.edges
- Collection of DirectedEdge objects contained by the graph.
Copyright © 1996-2014 Geotools. All Rights Reserved.