Combinatorial tools for the analysis of ramified patterns