Avoid NPE if toString() is called on empty RelationGraph.
Minor formatting cleanup.