dag_saturate() takes a tidy DAG object and, optionally using existing
coordinates, saturates the DAG based on time ordering of the nodes. To create
a saturated DAG from scratch, see as_tidy_dagitty.list(). dag_prune()
takes an existing DAG and removes edges. This is most useful when used
together with saturated DAG.
Usage
dag_saturate(
  .tdy_dag,
  use_existing_coords = FALSE,
  layout = "time_ordered",
  seed = NULL,
  ...
)
dag_prune(.tdy_dag, edges)Arguments
- .tdy_dag
- A - tidy_dagittyor- dagittyobject
- use_existing_coords
- Logical, indicating whether to use existing node coordinates. 
- layout
- a layout available in - ggraph. See- ggraph::create_layout()for details. Alternatively,- "time_ordered"will use- time_ordered_coords()to algorithmically sort the graph by time.
- seed
- a numeric seed for reproducible layout generation 
- ...
- optional arguments passed to - ggraph::create_layout()
- edges
- A named character vector where the name is the starting node and the value is the end node, e.g. - c("x" = "y")will remove the edge going from- xto- y.


