Table of Contents

Class GraphComponent

Namespace
NetTopologySuite.GeometriesGraph
Assembly
NetTopologySuite.dll

A GraphComponent is the parent class for the objects' that form a graph. Each GraphComponent can carry a Label.

public abstract class GraphComponent
Inheritance
GraphComponent
Derived
Inherited Members

Constructors

GraphComponent()

protected GraphComponent()

GraphComponent(Label)

protected GraphComponent(Label label)

Parameters

label Label

Properties

Coordinate

public abstract Coordinate Coordinate { get; protected set; }

Property Value

Coordinate

A coordinate in this component (or null, if there are none).

Covered

public bool Covered { get; set; }

Property Value

bool

InResult

public bool InResult { get; set; }

Property Value

bool

IsCovered

public bool IsCovered { get; }

Property Value

bool

IsCoveredSet

public bool IsCoveredSet { get; }

Property Value

bool

IsInResult

IsInResult indicates if this component has already been included in the result.

public bool IsInResult { get; }

Property Value

bool

IsIsolated

An isolated component is one that does not intersect or touch any other component. This is the case if the label has valid locations for only a single Geometry.

public abstract bool IsIsolated { get; }

Property Value

bool

true if this component is isolated.

IsVisited

public bool IsVisited { get; }

Property Value

bool

Label

public Label Label { get; protected set; }

Property Value

Label

Visited

public bool Visited { get; set; }

Property Value

bool

Methods

ComputeIM(IntersectionMatrix)

Compute the contribution to an IM for this component.

public abstract void ComputeIM(IntersectionMatrix im)

Parameters

im IntersectionMatrix

An IntersectionMatrix

UpdateIM(IntersectionMatrix)

Update the IM with the contribution for this component. A component only contributes if it has a labelling for both parent geometries.

public void UpdateIM(IntersectionMatrix im)

Parameters

im IntersectionMatrix

An IntersectionMatrix