small modifications to shortest_path wrapper
proper graph now hooked in