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