Fixed Bug When Creating a CGraph

getRoot() was returning null if the graph contained unconnected nodes.
It was fixed by removing unconnected nodes from the set.