Graph: update DeleteUnconnectedNodes

* Need an input node to delete the unconnected nodes of the graph from
this argument.
* Remove Graph::_outputId (duplicate variable, already in
InternalGraph).
* Update pyTest of DeleteUnconnectedNodes.