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