small changes to shortest path edge declarations