remove_leaves
l
To remove the leaves:
remove any arc that points to a leaf
l
l
removeLeaves(Graph) =
drop((Arc)=>isLeaf(second(Arc), Graph),
Graph);
l
the node to which Arc points
the list of arcs in the graph