add _update_node_parents function
Merge pull request #38 from ankurankan/dev

add _update_node_parents function