need a kind of map or set to avoid counting nodes twice
refactoring went wrong?
Authored by: vsp_neumann 2010-08-18
Parent: [r12366]
Child: [r12368]