unify_path function

Simplification networks -- applied to unifying nodes