Bug fixes to getChildren for non-compound graphs