clue / graph-composer

Dependency graph visualization for composer.json (PHP + Composer)
https://clue.engineering/2020/introducing-graph-composer
MIT License
924 stars 59 forks source link

Add option to limit depth of the graph #33

Open clue opened 8 years ago

clue commented 8 years ago

Some projects have many dependencies and the graphs can get too large (#11). One option would be to add a --depth option in order to limit the depth of the resulting graph.

For example, the following could be used to display only direct dependencies (i.e. no sub-dependencies):

$ graph-composer show --depth=1

Special care may have to be taken with regards to loops/circles in the graph.

ZsgsDesign commented 4 years ago

When will we have this feature, thanks~

clue commented 4 years ago

This is definitely still on the roadmap. As much as I'd like to commit to specific date, I can only say that we will get to this feature as soon as time permits.

If you want to help sponsor this feature, feel free to reach out and I'm happy to take a look :+1:

markuspoerschke commented 4 years ago

@ZsgsDesign This feature is already available in this Pull Request: https://github.com/clue/graph-composer/pull/45

ZsgsDesign commented 4 years ago

@markuspoerschke Thank you for your kindly reference. Hope to see one day this PR merged into the master branch and have a release.