I want to check if list of vertices in a graph are connected or not. If connected returns True if not False. The code below outputs which edges are connected to each node, b