JIRA 198: nested graphs. Simple algorithm to always have contained graphs on top of containing graphs so the user is always able to select them. Note that this algorithm assumes only for one level of nesting or parent graphs created before children.