Determine Nesting Level of Blocks
Calculates if a block is fully nested within another block, and what the highest level of nesting is. 1 indicates the block isn't nested within another block--just within the intercept.
calculate_block_nesting(blockgroups, blockstructure)
Vector of numbers indicating the hierarchy
Useful links