sparsify function

Extract the backbone from a network using a sparsification model