Implemented deepCopy of graph. Added method hasNodes for graph checking if the graph has any nodes.