SimpleGraph: Bugfixes for empty graphs