Represents a directed graph which is embeddable in a planar surface. This class and the other classes in this package serve as a framework for building planar graphs for specific algorithms. This class must be subclassed to expose appropriate methods to construct the graph. This allows controlling the types of graph components ({DirectedEdge}s, Edge
s and Node
s) which can be added to the graph. An application which uses the graph framework will almost always provide subclasses for one or more graph components, which hold application-specific data and graph algorithms.
More...
|
void | Add (Node node) |
| Adds a node to the map, replacing any that is already at that location. Only subclasses can add Nodes, to ensure Nodes are of the right type. More...
|
|
void | Add (Edge edge) |
| Adds the Edge and its DirectedEdges with this PlanarGraph. Assumes that the Edge has already been created with its associated DirectEdges. Only subclasses can add Edges, to ensure the edges added are of the right class. More...
|
|
void | Add (DirectedEdge dirEdge) |
| Adds the Edge to this PlanarGraph; only subclasses can add DirectedEdges, to ensure the edges added are of the right class. More...
|
|
Represents a directed graph which is embeddable in a planar surface. This class and the other classes in this package serve as a framework for building planar graphs for specific algorithms. This class must be subclassed to expose appropriate methods to construct the graph. This allows controlling the types of graph components ({DirectedEdge}s, Edge
s and Node
s) which can be added to the graph. An application which uses the graph framework will almost always provide subclasses for one or more graph components, which hold application-specific data and graph algorithms.
void NetTopologySuite.Planargraph.PlanarGraph.Add |
( |
Node |
node | ) |
|
|
protected |
Adds a node to the map, replacing any that is already at that location. Only subclasses can add Nodes, to ensure Nodes are of the right type.
- Parameters
-
- Returns
- The added node.
void NetTopologySuite.Planargraph.PlanarGraph.Add |
( |
Edge |
edge | ) |
|
|
protected |
Adds the Edge and its DirectedEdges with this PlanarGraph. Assumes that the Edge has already been created with its associated DirectEdges. Only subclasses can add Edges, to ensure the edges added are of the right class.
- Parameters
-
void NetTopologySuite.Planargraph.PlanarGraph.Add |
( |
DirectedEdge |
dirEdge | ) |
|
|
protected |
Adds the Edge to this PlanarGraph; only subclasses can add DirectedEdges, to ensure the edges added are of the right class.
- Parameters
-
Node NetTopologySuite.Planargraph.PlanarGraph.FindNode |
( |
Coordinate |
pt | ) |
|
Returns the Node at the given pt location, or nullif no Node was there.
- Parameters
-
- Returns
- The node found
or null
if this graph contains no node at the location
IList<Node> NetTopologySuite.Planargraph.PlanarGraph.FindNodesOfDegree |
( |
int |
degree | ) |
|
Returns all Nodes with the given number of Edges around it.
- Parameters
-
- Returns
IEnumerator<DirectedEdge> NetTopologySuite.Planargraph.PlanarGraph.GetDirEdgeEnumerator |
( |
| ) |
|
Returns an Iterator over the DirectedEdges in this PlanarGraph, in the order in which they were added.
- Returns
IEnumerator<Edge> NetTopologySuite.Planargraph.PlanarGraph.GetEdgeEnumerator |
( |
| ) |
|
Returns an Iterator over the Edges in this PlanarGraph, in the order in which they were added.
- Returns
IEnumerator<Node> NetTopologySuite.Planargraph.PlanarGraph.GetNodeEnumerator |
( |
| ) |
|
Returns an IEnumerator over the Nodes in this PlanarGraph.
- Returns
void NetTopologySuite.Planargraph.PlanarGraph.Remove |
( |
Edge |
edge | ) |
|
Removes an Edge and its associated DirectedEdges from their from-Nodes and from this PlanarGraph. Note: This method does not remove the Nodes associated with the Edge, even if the removal of the Edge reduces the degree of a Node to zero.
- Parameters
-
void NetTopologySuite.Planargraph.PlanarGraph.Remove |
( |
DirectedEdge |
de | ) |
|
void NetTopologySuite.Planargraph.PlanarGraph.Remove |
( |
Node |
node | ) |
|
Removes a node from the graph, along with any associated DirectedEdges and Edges.
- Parameters
-
NodeMap NetTopologySuite.Planargraph.PlanarGraph.nodeMap = new NodeMap() |
|
protected |
IList<Edge> NetTopologySuite.Planargraph.PlanarGraph.Edges |
|
getprotected set |
Returns the Edges that have been added to this PlanarGraph.
ICollection<Node> NetTopologySuite.Planargraph.PlanarGraph.Nodes |
|
get |
The documentation for this class was generated from the following file:
- NetTopologySuite/NetTopologySuite/Planargraph/PlanarGraph.cs