pub fn dependency_graph(model: &DataModel) -> DiGraph<Object, ()>Expand description
Creates a directed graph representing dependencies between objects in a data model.
This function builds a directed graph where nodes represent objects and edges represent dependencies between them. A dependency exists when one object’s attributes reference another object as its data type. This function includes all objects in the model.
§Arguments
model- The data model containing objects and their relationships
§Returns
A directed graph (DiGraph) where:
- Nodes contain the full Object structs
- Edges represent dependencies between objects (empty unit type)
- All objects in the model are included in the graph