bug in dijkstra module fixed.

corresponding test module upgraded to include digraphs.