some test program on shortest path calculation