| |
|
| java.lang.Object com.vividsolutions.jts.planargraph.Subgraph
Subgraph | public class Subgraph (Code) | | A subgraph of a
PlanarGraph .
A subgraph may contain any subset of
Edge s
from the parent graph.
It will also automatically contain all
DirectedEdge s
and
Node s associated with those edges.
No new objects are created when edges are added -
all associated components must already exist in the parent graph.
|
Subgraph | public Subgraph(PlanarGraph parentGraph)(Code) | | Creates a new subgraph of the given
PlanarGraph Parameters: parentGraph - the parent graph |
add | public void add(Edge e)(Code) | | Adds an
Edge to the subgraph.
The associated
DirectedEdge s and
Node s
are also added.
Parameters: e - the edge to add |
contains | public boolean contains(Edge e)(Code) | | Tests whether an
Edge is contained in this subgraph
Parameters: e - the edge to test true if the edge is contained in this subgraph |
|
|
|