private void Add(LineString lineString)
        {
            var seq = lineString.CoordinateSequence;

            for (int i = 1; i < seq.Count; i++)
            {
                var prev = seq.GetCoordinate(i - 1);
                var curr = seq.GetCoordinate(i);
                graph.AddEdge(prev, curr);
            }
        }
 private HalfEdge AddEdge(NetTopologySuite.EdgeGraph.EdgeGraph graph, double p0x, double p0y, double p1x, double p1y)
 {
     return(graph.AddEdge(new Coordinate(p0x, p0y), new Coordinate(p1x, p1y)));
 }