Creates a graph from a text file the user inputs.