Graph generation, representation and first Dijkstra test