simplify_network function

Simplify a spatial network by removing multiple edges and loops.