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

read .DOT and generate node/edge dfs? #466

Open
aschmidt-amplify opened this issue Mar 22, 2022 · 3 comments
Open

read .DOT and generate node/edge dfs? #466

aschmidt-amplify opened this issue Mar 22, 2022 · 3 comments

Comments

@aschmidt-amplify
Copy link

I did not see a function for this, but may have missed it. Is there currently a function (or will there be a function in a future release) that takes a .DOT file (or DOT code object) and builds a graph from which node and edge dataframes can be extracted?

@sammysheep
Copy link

I see that import_graph supports GML, SIF, .edges, and .mtx formats. Apparently there is a generate_dot(graph) function that takes a dgr_graph and provides DOT. I also don't see anything in reverse that reads the file into an object (maybe my mistake).

Hoping for this feature too, but in the meantime, please update if you find a way to import the DOT file with another package and pass the graph object to DiagrammeR.

@sammysheep
Copy link

This can be used to plot the graph: DiagrammeR::grViz("test.gv")

Haven't discovered if I can extract the data frames.

@olivroy
Copy link
Collaborator

olivroy commented Nov 17, 2023

Apparently, igraph is unlikely to support reading Dot files. thomasp85/tidygraph#183 (comment).

I suppose DiagrammeR is unlikely to do it either.

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

3 participants