01: /*
02: * GeoTools - OpenSource mapping toolkit
03: * http://geotools.org
04: * (C) 2002-2006, GeoTools Project Managment Committee (PMC)
05: * (C) 2002, Refractions Reserach Inc.
06: *
07: * This library is free software; you can redistribute it and/or
08: * modify it under the terms of the GNU Lesser General Public
09: * License as published by the Free Software Foundation;
10: * version 2.1 of the License.
11: *
12: * This library is distributed in the hope that it will be useful,
13: * but WITHOUT ANY WARRANTY; without even the implied warranty of
14: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15: * Lesser General Public License for more details.
16: */
17: package org.geotools.graph.structure.basic;
18:
19: import java.util.Collection;
20:
21: import org.geotools.graph.structure.DirectedGraph;
22:
23: /**
24: * Basic implementation of DirectedGraph.
25: *
26: * @author Justin Deoliveira, Refractions Research Inc, jdeolive@refractions.net
27: *
28: * @source $URL: http://svn.geotools.org/geotools/tags/2.4.1/modules/extension/graph/src/main/java/org/geotools/graph/structure/basic/BasicDirectedGraph.java $
29: */
30: public class BasicDirectedGraph extends BasicGraph implements
31: DirectedGraph {
32:
33: /**
34: * Creates a directed graph from a collection of directed nodes and a
35: * collection of directed edges.
36: * The relationships between the nodes (edges) are already assumed to be
37: * formed. Only the references to the node and edge collections are copied,
38: * not the underlying collections themselves.
39: *
40: * @param nodes Collection of DirectedNode objects contained by the graph.
41: * @param edges Collection of DirectedEdge objects contained by the graph.
42: */
43: public BasicDirectedGraph(Collection nodes, Collection edges) {
44: super(nodes, edges);
45: }
46:
47: }
|