Class EdgeGraphBuilder
Builds an edge graph from geometries containing edges.
Inherited Members
Namespace: NetTopologySuite.EdgeGraph
Assembly: NetTopologySuite.dll
Syntax
public class EdgeGraphBuilder
Constructors
| Edit this page View SourceEdgeGraphBuilder()
Creates a new EdgeGraphBuilder.
Declaration
public EdgeGraphBuilder()
Methods
| Edit this page View SourceAdd(Geometry)
Adds the edges of a Geometry to the graph. May be called multiple times. Any dimension of Geometry may be added; the constituent edges are extracted.
Declaration
public void Add(Geometry geometry)
Parameters
| Type | Name | Description |
|---|---|---|
| Geometry | geometry | geometry to be added |
Add(IEnumerable<Geometry>)
Adds the edges in a collection of Geometrys to the graph. May be called multiple times. Any dimension of Geometry may be added.
Declaration
public void Add(IEnumerable<Geometry> geometries)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Geometry> | geometries | the geometries to be added |
Build(IEnumerable<Geometry>)
Factory method to build an EdgeGraph.
Declaration
public static EdgeGraph Build(IEnumerable<Geometry> geoms)
Parameters
| Type | Name | Description |
|---|---|---|
| IEnumerable<Geometry> | geoms | The geometries to make up the |
Returns
| Type | Description |
|---|---|
| EdgeGraph | An |
GetGraph()
Gets the created EdgeGraph
Declaration
public EdgeGraph GetGraph()
Returns
| Type | Description |
|---|---|
| EdgeGraph | The created |