Verify whether or not a node exists.

- This commit adds the method `hasNode(id)` to the main graph object allowing one to retrieve whether or not a node had already been created.