Generates enumeration correctly, need to set up shortest path