break ties in weights in assembly.allmaps.path()