Class Node
A node in a PlanarGraph
is a location where 0 or more Edge
s
meet. A node is connected to each of its incident Edges via an outgoing
DirectedEdge. Some clients using a PlanarGraph
may want to
subclass Node
to add their own application-specific
data and methods.
Assembly: NetTopologySuite.dll
Syntax
public class Node : GraphComponent
Constructors
|
Improve this Doc
View Source
Node(Coordinate)
Constructs a Node with the given location.
Declaration
public Node(Coordinate pt)
Parameters
|
Improve this Doc
View Source
Node(Coordinate, DirectedEdgeStar)
Constructs a Node with the given location and collection of outgoing DirectedEdges.
Declaration
public Node(Coordinate pt, DirectedEdgeStar deStar)
Parameters
Fields
|
Improve this Doc
View Source
deStar
The collection of DirectedEdges that leave this Node.
Declaration
protected DirectedEdgeStar deStar
Field Value
|
Improve this Doc
View Source
pt
The location of this Node.
Declaration
Field Value
Properties
|
Improve this Doc
View Source
Coordinate
Returns the location of this Node.
Declaration
public Coordinate Coordinate { get; }
Property Value
|
Improve this Doc
View Source
Degree
Returns the number of edges around this Node.
Declaration
public int Degree { get; }
Property Value
|
Improve this Doc
View Source
IsRemoved
Tests whether this component has been removed from its containing graph.
Declaration
public override bool IsRemoved { get; }
Property Value
Overrides
|
Improve this Doc
View Source
OutEdges
Returns the collection of DirectedEdges that leave this Node.
Declaration
public DirectedEdgeStar OutEdges { get; }
Property Value
Methods
|
Improve this Doc
View Source
AddOutEdge(DirectedEdge)
Adds an outgoing DirectedEdge to this Node.
Declaration
public void AddOutEdge(DirectedEdge de)
Parameters
|
Improve this Doc
View Source
GetEdgesBetween(Node, Node)
Returns all Edges that connect the two nodes (which are assumed to be different).
Declaration
public static IList<DirectedEdge> GetEdgesBetween(Node node0, Node node1)
Parameters
Type |
Name |
Description |
Node |
node0 |
|
Node |
node1 |
|
Returns
|
Improve this Doc
View Source
GetIndex(Edge)
Returns the zero-based index of the given Edge, after sorting in ascending order
by angle with the positive x-axis.
Declaration
public int GetIndex(Edge edge)
Parameters
Type |
Name |
Description |
Edge |
edge |
|
Returns
|
Improve this Doc
View Source
Remove(DirectedEdge)
Removes a DirectedEdge incident on this node. Does not change the state of the directed edge.
Declaration
public void Remove(DirectedEdge de)
Parameters
|
Improve this Doc
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides