I've discovered that a certain operation is quite useful when working with certain graphs, the operation is removing leaf nodes iteratively.
That is, I start by finding all leaf nodes (ie. nodes of degree = 1) and removing them from the graph. I then iteratively perform the same until there are no more leaf nodes, which means there are either no more nodes left, or one node, or cycles (depending on the type of the graph).
Is this operation called something? Is it used somewhere else? So far I was unable to find any references. Thanks!