digraph_distance_measure input format changed.

corresponding test modules also updated.