graph_distance _measure input formats changed.

test module also updated accordingly.