migrating Dijkstra code into a script. also changed default size of graph window