private static void validateRoot(SDDocumentType root) {
        validateChildren(root, root);
    }
Validates that there are no cycles between document types (exception: self-reference is allowed).
Example: if document B inherits A, then A cannot have a document reference to B.

@author bjorncs
config-model/src/main/java/com/yahoo/schema/DocumentGraphValidator.java