thomasp85 / tidygraph

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

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

Open grasshoppermouse opened 1 year ago

grasshoppermouse commented 1 year 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 1 year ago

I'll be happy to review a PR for this