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