Revert "Changed Graph.add_node()"

This reverts commit 4056b17f152ffec701ad1825b306afc0cbd6ea38.