backbone_from_weighted function

Extract the backbone from a weighted network