'Given a list of all models in a graph, return JSON representing
them and their properties.'

@classmethod
def _references_json(cls, references):

    references_json = []
    for r in references:
        ref = r.ref
        ref['attributes'] = r._to_json_like(include_defaults=False)
        references_json.append(ref)
    return references_json
