Exemple #1
0
 /// <summary>
 /// Returns the Distance between two vertices
 /// </summary>
 public abstract int GetEdgeValue(Vertex a, Vertex b);
Exemple #2
0
 /// <summary>
 /// Sets Distance between two vertices
 /// </summary>
 public abstract void SetEdgeValue(Vertex a, Vertex b, int newDistance);
Exemple #3
0
 /// <summary>
 /// Returns the ID of a vertex (Can also be done through Vertex.VertexID)
 /// </summary>
 public abstract string GetVertexValue(Vertex a);
Exemple #4
0
 /// <summary>
 /// Sets the ID of a Vertex (Can also be done through Vertex.VertexID)
 /// </summary>
 public abstract void SetVertexValue(Vertex a, string newValue);
Exemple #5
0
 /// <summary>
 /// Adds a weighted connection between two vertices
 /// </summary>
 public abstract void AddEdge(Vertex a, Vertex b, int distance);
Exemple #6
0
 /// <summary>
 /// Removes a connection linking two vertices
 /// </summary>
 public abstract void RemoveEdge(Vertex a, Vertex b);
Exemple #7
0
 /// <summary>
 /// Adds an unweighted connection between two vertices
 /// </summary>
 public abstract void AddEdge(Vertex a, Vertex b);
Exemple #8
0
 /// <summary>
 /// Removes a vertex from the graph
 /// </summary>
 public abstract void RemoveVertex(Vertex a);
Exemple #9
0
 public abstract void AddVertex(Vertex a);
Exemple #10
0
 /// <summary>
 /// Prints all nodes adjacent to the one passed as a parameter
 /// </summary>
 public abstract void Neighbors(Vertex a);
Exemple #11
0
 /// <summary>
 /// Checks if two Vertices are adjacent to each other
 /// </summary>
 public abstract bool IsAdjacent(Vertex a, Vertex b);