Treated weight as lenght on picture

We've made a project mistake. 'weight' should be 'len' on input graph.