Solution Review: Remove Edge
This review provides a detailed analysis of the different ways to solve the "Remove Edge" challenge.
We'll cover the following...
Solution: Indexing and deletion
Press + to interact
main.cs
Graph.cs
LinkedList.cs
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace chapter_5{class Challenge_9{static void removeEdge(Graph g, int source, int destination){(g.getArray())[source].Delete(destination);}static void Main(string[] args){Graph g = new Graph(5);g.addEdge(0, 1);g.addEdge(0, 2);g.addEdge(1, 3);g.addEdge(2, 4);g.addEdge(4, 0);g.printGraph();removeEdge(g, 1, 3);g.printGraph();}}}
This is a fairly ...