thomasp85 / tidygraph

A tidy API for graph manipulation
https://tidygraph.data-imaginist.com
Other
543 stars 61 forks source link

Feature request: add support for class "dagitty" to as_tbl_graph #179

Open grasshoppermouse opened 8 months ago

grasshoppermouse commented 8 months ago

https://github.com/jtextor/dagitty

This package is widely used in analysis of graphical causal models (DAGs).

library(dagitty)
g <- randomDAG(10, 0.5)
class(g)
names(g) # nodes
edges(g)
thomasp85 commented 8 months ago

I'll be happy to review a PR for this