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