public static void AddEdge(Graphs graph, int source, int nodeValue) { graph.llist[source].AddLast(nodeValue); graph.llist[nodeValue].AddLast(source); }