Create a graph method to detect whether or not a graph is disconnected.
This is a companion discussion topic for the original entry at https://www.raywenderlich.com/11447782-kotlin-whiteboard/lessons/44
Create a graph method to detect whether or not a graph is disconnected.