Table of Contents

Class Node

Namespace
NetTopologySuite.GeometriesGraph
Assembly
NetTopologySuite.dll
public class Node : GraphComponent
Inheritance
Node
Derived
Inherited Members

Constructors

Node(Coordinate, EdgeEndStar)

public Node(Coordinate coord, EdgeEndStar edges)

Parameters

coord Coordinate
edges EdgeEndStar

Properties

Coordinate

Gets a value indicating the position of this

public override Coordinate Coordinate { get; protected set; }

Property Value

Coordinate

The position of this Node

Edges

Gets a value indicating the EdgeEndStar of this Node

public EdgeEndStar Edges { get; protected set; }

Property Value

EdgeEndStar

The EdgeEndStar of this Node

IsIsolated

public override bool IsIsolated { get; }

Property Value

bool

Methods

Add(EdgeEnd)

Add the edge to the list of edges at this node.

public void Add(EdgeEnd e)

Parameters

e EdgeEnd

An EdgeEnd

ComputeIM(IntersectionMatrix)

public override void ComputeIM(IntersectionMatrix im)

Parameters

im IntersectionMatrix

Remarks

Basic nodes do not compute IMs.

ComputeMergedLocation(Label, int)

The location for a given eltIndex for a node will be one of { Null, Interior, Boundary }. A node may be on both the boundary and the interior of a point; in this case, the rule is that the node is considered to be in the boundary. The merged location is the maximum of the two input values.

public Location ComputeMergedLocation(Label label2, int eltIndex)

Parameters

label2 Label
eltIndex int

Returns

Location

IsIncidentEdgeInResult()

Tests whether any incident edge is flagged as being in the result. This test can be used to determine if the node is in the result, since if any incident edge is in the result, the node must be in the result as well.

public bool IsIncidentEdgeInResult()

Returns

bool

true if any incident edge in the in the result

MergeLabel(Label)

To merge labels for two nodes, the merged location for each LabelElement is computed. The location for the corresponding node LabelElement is set to the result, as long as the location is non-null.

public void MergeLabel(Label label)

Parameters

label Label

The Label to merge

MergeLabel(Node)

Merges n's Label with this Node's Label.

public void MergeLabel(Node n)

Parameters

n Node

A Node

SetLabel(int, Location)

public void SetLabel(int argIndex, Location onLocation)

Parameters

argIndex int
onLocation Location

SetLabelBoundary(int)

Updates the label of a node to BOUNDARY, obeying the mod-2 boundaryDetermination rule.

public void SetLabelBoundary(int argIndex)

Parameters

argIndex int

An index for a TopologyLocation (0 or 1)

ToString()

public override string ToString()

Returns

string

Write(TextWriter)

public void Write(TextWriter outstream)

Parameters

outstream TextWriter