scottrogowski / code2flow

Pretty good call graphs for dynamic languages
MIT License
3.92k stars 286 forks source link

feature: Option to also display isolated nodes (not called, not calling) #101

Open pawamoy opened 2 months ago

pawamoy commented 2 months ago

I'm experimenting with Code2Flow to automatically inject call graphs into my docs pages for each internal module. Some of these modules declare several things but that don't have any interactions, so for these modules, the generated graphs are empty. I was wondering if it would be possible to add an option to say "pick up and render nodes even if they are not called by anyone and don't call anyone"? I'd understand if you consider this out-of-scope since Code2Flow was designed for call graphs, not for "more generic" diagrams :slightly_smiling_face: