removed 'weight' from edges