Write a Graph methods
public void displayVertices() and public void displayEdges().
Write a Graph method
public void removeVertexEdges(int v) that removes all the Edges exiting a given vertex, by directly accessing the two -dimensional array.
Write a Graph method
public intvertexOutDegree(int v) that tells the out - degree of a given vertex id (defined to be the number of Edges exiting the vertex) by directly accessing the two - dimensional array.
Write a graph method
public intvertexInDegree(int v) that tells the in - degree of a given vertex id