Graph: add functions to delete nodes (test Travis)

* Update clear.
* Add getNbNodes and getNbConnections.
* Add deleteUnconnectedNodes.
* Add pyTests.
* Test Travis: no change with Travis (see last commit of the other PR about the Graph).