Skip to content

[Question / Feature Request] Adding support for reading in a graph from a dotfile #466

@saresend

Description

@saresend

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

  • 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    S-needs-triageStatus: Needs to be labelled

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions