allow weights to be applied in longest path in assembly.allmaps