Example #1
0
        public void AddEdge(long vertice1, long vertice2, long value)
        {
            var       vert1 = Vertices[vertice1 - 1];
            var       vert2 = Vertices[vertice2 - 1];
            GraphEdge edge  = new GraphEdge(vert1, vert2, value);

            vert1.AddEdge(edge);
            vert2.AddEdge(edge);
            Edges[_edgesCount] = edge;
            ++_edgesCount;
        }
Example #2
0
 public void AddEdge(GraphEdge edge)
 {
     Edges.Add(edge);
 }