Fix dependency cycles in Children in graphdb

/one/two and /two/one will cause this issue. See attached test.

All tests pass after applying this change.