Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visualization of multiple packages #328

Open
valkrypton opened this issue Oct 8, 2024 · 1 comment
Open

Visualization of multiple packages #328

valkrypton opened this issue Oct 8, 2024 · 1 comment

Comments

@valkrypton
Copy link

I have a workspace with multiple packages and I want to visualize if there's any inter-dependency between them. Is that possible?

@regexident
Copy link
Owner

Hi @valkrypton, it isn't supported as a feature.

That said, while I haven't tried it myself yet, one should be able to manually merge the produced .dot file output of two (or more) runs in a text editor.

The output should look something like this:

digraph {

    graph [
        // graph attributes ...
    ];

    node [
        // node attributes ...
    ];
 
    edge [
        // edge attributes ...
    ];

    // nodes ...

    // edges ...
}

What you would have to do is open the output of your two runs in an editor for each and then copy the // nodes ... section of one file and append it to the same section of the other file. Then do the same for // edges ....

I'm not sure from the top of my head how graphviz handles duplicate nodes/edges, so might have to run the merged // nodes ... and // edges ... sections through sort -f | uniq to eliminate any redundant nodes/edges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants