You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This might already be supported, but I can't seem to find it on docs.rs:
I'd like a way to read in a graph from a dotfile
Motivation
My usecase is the following: I have a tool that outputs graphs to a dotfile format, and I'd like to be able to perform operations with petgraph on the output of those tools.
As an example, one thing that gets output is a graph of all of the dependencies my project has, and given a set of dependencies I'd like to remove, I'd like to find the minimum cut such that my project no longer depends on those libraries. Currently, the approach I have is to visually inspect the output of graphviz for plausible ways to do this, but I'd like to be able to write a tool that finds where I can remove them a bit easier. There are a couple other usages I'd like to add, and for that I'd love to have a way to operate on the contents of a dotfile, with petgraph
Details
Are you willing to implement this yourself? Mentor someone else and help them
implement it?
Happy to help add this myself, just want to verify this is behavior that petgraph is ok supporting
The text was updated successfully, but these errors were encountered:
It's a good idea, but I think it should be a separate crate/library to avoid unnecessary dependencies. On the other hand, such crate could be a part of petgraph organization as well.
I have generalised those ideas and published them as crate rust_dot. Still a plain macro, not yet a proc-macro, but built around that technology. Turns out this now allows parsing strings or files.
Summary
This might already be supported, but I can't seem to find it on docs.rs:
I'd like a way to read in a graph from a dotfile
Motivation
My usecase is the following: I have a tool that outputs graphs to a dotfile format, and I'd like to be able to perform operations with petgraph on the output of those tools.
As an example, one thing that gets output is a graph of all of the dependencies my project has, and given a set of dependencies I'd like to remove, I'd like to find the minimum cut such that my project no longer depends on those libraries. Currently, the approach I have is to visually inspect the output of graphviz for plausible ways to do this, but I'd like to be able to write a tool that finds where I can remove them a bit easier. There are a couple other usages I'd like to add, and for that I'd love to have a way to operate on the contents of a dotfile, with petgraph
Details
implement it?
Happy to help add this myself, just want to verify this is behavior that petgraph is ok supporting
The text was updated successfully, but these errors were encountered: