NetTopologySuite
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Pages
NetTopologySuite.Planargraph.Subgraph Class Reference

A subgraph of a PlanarGraph. A subgraph may contain any subset of Edges from the parent graph. It will also automatically contain all DirectedEdges and Nodes associated with those edges. No new objects are created when edges are added - all associated components must already exist in the parent graph. More...

Public Member Functions

 Subgraph (PlanarGraph parentGraph)
 Creates a new subgraph of the given PlanarGraph. More...
 
PlanarGraph GetParent ()
 Gets the PlanarGraph which this subgraph is part of. More...
 
void Add (Edge e)
 Adds an Edge to the subgraph. The associated DirectedEdges and Nodes are also added. More...
 
IEnumerator< DirectedEdgeGetDirEdgeEnumerator ()
 Returns an IEnumerator{DirectedEdge} over the DirectedEdges in this graph, in the order in which they were added. More...
 
IEnumerator< EdgeGetEdgeEnumerator ()
 Returns an IEnumerator{Edge} over the Edges in this graph, in the order in which they were added. More...
 
IEnumerator< NodeGetNodeEnumerator ()
 Returns an IEnumerator{Node} over the Nodes in this graph. More...
 
bool Contains (Edge e)
 Tests whether an Edge is contained in this subgraph. More...
 

Protected Attributes

PlanarGraph parentGraph
 
Set< Edgeedges = new Set<Edge>()
 
IList< DirectedEdgedirEdges = new List<DirectedEdge>()
 
NodeMap nodeMap = new NodeMap()
 

Detailed Description

A subgraph of a PlanarGraph. A subgraph may contain any subset of Edges from the parent graph. It will also automatically contain all DirectedEdges and Nodes associated with those edges. No new objects are created when edges are added - all associated components must already exist in the parent graph.

Constructor & Destructor Documentation

NetTopologySuite.Planargraph.Subgraph.Subgraph ( PlanarGraph  parentGraph)

Creates a new subgraph of the given PlanarGraph.

Parameters
parentGraph

Member Function Documentation

void NetTopologySuite.Planargraph.Subgraph.Add ( Edge  e)

Adds an Edge to the subgraph. The associated DirectedEdges and Nodes are also added.

Parameters
eThe Edge to add.
bool NetTopologySuite.Planargraph.Subgraph.Contains ( Edge  e)

Tests whether an Edge is contained in this subgraph.

Parameters
eThe Edge to test.
Returns
true if the Edge is contained in this subgraph.
IEnumerator<DirectedEdge> NetTopologySuite.Planargraph.Subgraph.GetDirEdgeEnumerator ( )

Returns an IEnumerator{DirectedEdge} over the DirectedEdges in this graph, in the order in which they were added.

Returns
IEnumerator<Edge> NetTopologySuite.Planargraph.Subgraph.GetEdgeEnumerator ( )

Returns an IEnumerator{Edge} over the Edges in this graph, in the order in which they were added.

Returns
IEnumerator<Node> NetTopologySuite.Planargraph.Subgraph.GetNodeEnumerator ( )

Returns an IEnumerator{Node} over the Nodes in this graph.

Returns
PlanarGraph NetTopologySuite.Planargraph.Subgraph.GetParent ( )

Gets the PlanarGraph which this subgraph is part of.

Returns

Member Data Documentation

IList<DirectedEdge> NetTopologySuite.Planargraph.Subgraph.dirEdges = new List<DirectedEdge>()
protected

Set<Edge> NetTopologySuite.Planargraph.Subgraph.edges = new Set<Edge>()
protected

NodeMap NetTopologySuite.Planargraph.Subgraph.nodeMap = new NodeMap()
protected

PlanarGraph NetTopologySuite.Planargraph.Subgraph.parentGraph
protected


The documentation for this class was generated from the following file: