...

/

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.

Problem statement

You have to implement the int numEdges(Graph g) function, which takes an undirected ...