Class Subgraph
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.
Assembly: NetTopologySuite.dll
Syntax
Constructors
|
Improve this Doc
View Source
Subgraph(PlanarGraph)
Declaration
public Subgraph(PlanarGraph parentGraph)
Parameters
Fields
|
Improve this Doc
View Source
dirEdges
Declaration
protected IList<DirectedEdge> dirEdges
Field Value
|
Improve this Doc
View Source
edges
Declaration
protected HashSet<Edge> edges
Field Value
|
Improve this Doc
View Source
nodeMap
Declaration
protected NodeMap nodeMap
Field Value
|
Improve this Doc
View Source
parentGraph
Declaration
protected PlanarGraph parentGraph
Field Value
Methods
|
Improve this Doc
View Source
Add(Edge)
Declaration
Parameters
Type |
Name |
Description |
Edge |
e |
The Edge to add.
|
|
Improve this Doc
View Source
Contains(Edge)
Tests whether an Edge is contained in this subgraph.
Declaration
public bool Contains(Edge e)
Parameters
Type |
Name |
Description |
Edge |
e |
The Edge to test.
|
Returns
Type |
Description |
Boolean |
true if the Edge is contained in this subgraph.
|
|
Improve this Doc
View Source
GetDirEdgeEnumerator()
Declaration
public IEnumerator<DirectedEdge> GetDirEdgeEnumerator()
Returns
|
Improve this Doc
View Source
GetEdgeEnumerator()
Returns an IEnumerator<T> over the Edges in this graph,
in the order in which they were added.
Declaration
public IEnumerator<Edge> GetEdgeEnumerator()
Returns
|
Improve this Doc
View Source
GetNodeEnumerator()
Declaration
public IEnumerator<Node> GetNodeEnumerator()
Returns
|
Improve this Doc
View Source
GetParent()
Declaration
public PlanarGraph GetParent()
Returns