Combinatorial aspects of nodal curves