This graph generates an object with all possible paths between two nodes and outputs the shortest path