Comments (4)
Some additional thoughts..
regarding points above
1 - We could add an optional parameter to follow
the external calls along with the depth
argument (default behavior would be as it is today and only parse the starting file).
2 - We could look to check if the external call script exists in the sub-graph first, so that we don't try to parse through it again unnecessarily
3 - For calls to other programs ('non batch' scripts), currently it's represented as 'x # of external calls.. we could represent a node for each with a reference to the name of the item being called
4 - Visually representing as a rectangle would be great
5 - Limiting the set of files to expand is a nice optional argument also
also attached a potential mockup
from cmd-call-graph.
Thanks @cmg-src for volunteering to take this on!
I like the mock-up! I had another idea as well: to have a rectangle enclose all the nodes of the external script, but I'm not sure how easy it is to do in graphviz.
Also, since it's just aesthetics at that point, we can definitely go with whatever works for you first and then maybe iterate.
Thanks again!
from cmd-call-graph.
Did some research on the idea of to have a rectangle enclose all the nodes of the external script, but I'm not sure how easy it is to do in graphviz.
It looks like this could be handled with subgraph 'clusters' .. [https://graphviz.org/Gallery/directed/cluster.html]
I did some prototyping by manually modifying an existing .dot I had from my testing and while it's do-able, graphically it gets busy, and also in terms of rendering logic, the output appears to need to be in a specific order to group the items of the subgraph within that element.
from cmd-call-graph.
The cluster is exactly what I had in mind, but if you think it becomes too busy let's stick to the design you have with the folder shape. Thanks!
from cmd-call-graph.
Related Issues (20)
- Design a better color scheme for the output
- Fix handling of nodes with % HOT 2
- Add a lint mode HOT 1
- Create a ChangeLog HOT 1
- Do not require the value True to be passed in existing options
- Add a PowerShell usage example HOT 1
- Execute a full end-to-end test in Travis HOT 3
- Migrate CI to Azure Pipelines
- Automate pushing releases to PyPI HOT 2
- Publish test and coverage results to Azure DevOps
- Fix the build HOT 1
- Migrate to Python 3 HOT 1
- Keep track of how many terminating statements are in a node
- Visual representation of node size
- Improve command-line options
- Add version number to --help output
- Track the terminating vs. non-terminating code paths for a given node
- The right parenthesis that signals the end of a codeblock is considered a part of the label HOT 2
- This repo is missing important files
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cmd-call-graph.