Table of Contents

Class NodeMap

Namespace
NetTopologySuite.Planargraph
Assembly
NetTopologySuite.dll

A map of nodes, indexed by the coordinate of the node.

public class NodeMap
Inheritance
NodeMap
Inherited Members

Constructors

NodeMap()

public NodeMap()

Properties

Count

Returns the number of Nodes in this NodeMap.

public int Count { get; }

Property Value

int

Values

Returns the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.

public ICollection<Node> Values { get; }

Property Value

ICollection<Node>

Methods

Add(Node)

Adds a node to the map, replacing any that is already at that location.

public Node Add(Node n)

Parameters

n Node

Returns

Node

The added node.

Find(Coordinate)

Returns the Node at the given location, or null if no Node was there.

public Node Find(Coordinate coord)

Parameters

coord Coordinate

Returns

Node

GetEnumerator()

Returns an Iterator over the Nodes in this NodeMap, sorted in ascending order by angle with the positive x-axis.

public IEnumerator<Node> GetEnumerator()

Returns

IEnumerator<Node>

Remove(Coordinate)

Removes the Node at the given location, and returns it (or null if no Node was there).

public Node Remove(Coordinate pt)

Parameters

pt Coordinate

Returns

Node