lava-xyz / rust-ontologist

Visualizing Rust codebases in a few seconds
MIT License
161 stars 5 forks source link

What do edges represent? #5

Open wmmc88 opened 1 month ago

wmmc88 commented 1 month ago

Cool project!

What exactly do the edges represent in the graph? Is it that a module imports an item (ex. a function) into its scope?

I wonder if it would be more useful to show relationships where specific functions in the module use other functions, rather than just showing the module using the function? Like some sort of visualization of the call graph

Hirrolot commented 1 month ago

Edges represent any dependencies of one module upon another. For sure, we can have a more fine-grained approach than this, which is in our TODO list. Specifically, since there can be many more dependencies than we'd like to see (when the graph becomes simply unreadable), we must somehow manage to only show a subset of dependencies with the functionality to reveal others on user's demand.