Solution: Remove an Edge
In this review lesson, we will give a detailed analysis of the solution to remove an edge from a directed graph.
We'll cover the following...
We'll cover the following...
Solution: using graph traversal
Explanation
This challenge is very similar to the deletion in the linked list.
Our vertices are stored in a linked list.
First, we access the source linked list. If the head node of the source linked list holds the key to be deleted, we shift the head one step forward ...