Exemplo n.º 1
0
 /// <summary>
 /// Adds a new edge.
 /// </summary>
 public static uint AddEdge(this RoutingNetwork network, uint vertex1, uint vertex2, Edges.EdgeData data,
                            IEnumerable <Coordinate> shape)
 {
     if (shape == null)
     {
         return(network.AddEdge(vertex1, vertex2, data, (ShapeEnumerable)null));
     }
     return(network.AddEdge(vertex1, vertex2, data, new ShapeEnumerable(shape)));
 }
Exemplo n.º 2
0
 /// <summary>
 /// Adds a new edge.
 /// </summary>
 public static uint AddEdge(this RoutingNetwork network, uint vertex1, uint vertex2, Edges.EdgeData data,
                            params Coordinate[] shape)
 {
     return(network.AddEdge(vertex1, vertex2, data, new ShapeEnumerable(shape)));
 }