Removed generic type for the Node class

This commit also removed the qualified name attribute of the Method class
Fixed BUG node with dual parents removal

Fixed a BUG which caused a graph containing a node with 2 parents and no children, to be removed from the graph even though it is still connected through the secondary parent.