Пример #1
0
 public void AddEdge(GraphVertex vertex, int edgeWeight)
 {
     AddEdge(new GraphEdge(vertex, edgeWeight));
 }
Пример #2
0
 public void AddVertex(GraphVertex vertex)
 {
     Vertices.Add(vertex);
 }
Пример #3
0
 public GraphEdge(GraphVertex connectedVertex, int weight)
 {
     ConnectedVertex = connectedVertex;
     EdgeWeight      = weight;
 }