added a node visited filter at setNodePosition

Now with the capability of having 2 fathers i had to add this filter to
the node positioning of the beautify function so the position of nodes
dont get modified 2 times or more