impl a normalization step.
impl a normalization step.

turns out we need this step since randomly generated test cases
might have multiple arcs between two nodes and self-links,
which we need a way to eliminate.

Javran/misc,Javran/misc,Javran/misc,Javran/misc,Javran/misc