Class EdgeList
- Namespace
- NetTopologySuite.GeometriesGraph
- Assembly
- NetTopologySuite.dll
A EdgeList is a list of Edges. It supports locating edges that are point-wise equals to a target edge.
public class EdgeList
- Inheritance
-
EdgeList
- Inherited Members
Constructors
EdgeList()
public EdgeList()
Properties
Edges
public IList<Edge> Edges { get; }
Property Value
this[int]
public Edge this[int index] { get; }
Parameters
index
int
Property Value
Methods
Add(Edge)
Insert an edge unless it is already in the list.
public void Add(Edge e)
Parameters
e
EdgeAn
Edge
AddAll(IEnumerable<Edge>)
public void AddAll(IEnumerable<Edge> edgeColl)
Parameters
edgeColl
IEnumerable<Edge>
FindEdgeIndex(Edge)
If the edge e is already in the list, return its index.
public int FindEdgeIndex(Edge e)
Parameters
e
EdgeAn
Edge
Returns
- int
The index, if e is already in the list,
-1
otherwise.
FindEqualEdge(Edge)
If there is an edge equal to e already in the list, return it. Otherwise return null.
public Edge FindEqualEdge(Edge e)
Parameters
e
EdgeAn
Edge
Returns
- Edge
The equal edge, if there is one already in the list,
null
otherwise.
Get(int)
public Edge Get(int i)
Parameters
i
int
Returns
GetEnumerator()
public IEnumerator<Edge> GetEnumerator()
Returns
Remove(Edge)
Remove the selected Edge element from the list if present.
public void Remove(Edge e)
Parameters
e
EdgeEdge element to remove from list
Write(StreamWriter)
public void Write(StreamWriter outstream)
Parameters
outstream
StreamWriter