...
/Challenge 5: Count the Number of Edges in an Undirected Graph
Challenge 5: Count the Number of Edges in an Undirected Graph
In this lesson, you will figure out if it's possible to count the total number of edges in a graph.
We'll cover the following...
We'll cover the following...
Problem statement
You have to implement the int numEdges(Graph g)
function, which takes an undirected graph and computes the total number of bidirectional edges. An illustration ...