Writing code to convert Marvel-Graph.txt to BFS nodes