Dependency graph class

A dependency graph is an opaque object, only meant to be produced and consumed by the GraphAPI methods. It should not be created, inspected, or modified directly.

Unless explicitly shown otherwise in the documentation of a specific API method (for example, how to obtain the conanfile to pass to LocalAPI.build()), the only supported operation on it is calling its serialize() method, which returns a dict representation of the graph. That representation follows the same JSON schema documented for the “conan graph info” JSON formatter.