Skip to contents

The caugi object

caugi()
Create a caugi from edge expressions.

Queries

ancestors()
Get ancestors of nodes in a caugi
children()
Get children of nodes in a caugi
descendants()
Get descendants of nodes in a caugi
edge_types()
Get the edge types of a caugi.
edges() E()
Get edges of a caugi.
exogenous()
Get all exogenous nodes in a caugi
is_acyclic()
Is the caugi acyclic?
is_caugi()
Is it a caugi graph?
is_cpdag()
Is the caugi graph a CPDAG?
is_dag()
Is the caugi graph a DAG?
is_empty_caugi()
Is the caugi graph empty?
is_pdag()
Is the caugi graph a PDAG?
is_ug()
Is the caugi graph an UG?
markov_blanket()
Get Markov blanket of nodes in a caugi
neighbors() neighbours()
Get neighbors of nodes in a caugi
nodes() vertices() V()
Get nodes or edges of a caugi
parents()
Get parents of nodes in a caugi
same_nodes()
Same nodes?
subgraph()
Get the induced subgraph

Verbs

build()
Build the graph now
add_edges() remove_edges() set_edges() add_nodes() remove_nodes()
Manipulate nodes and edges of a caugi

Adjustment and d-separation

adjustment_set()
Compute an adjustment set
all_backdoor_sets()
Get all backdoor sets up to a certain size.
d_separated()
Are X and Y d-separated given Z?
is_valid_backdoor()
Is a backdoor set valid?

Simulation

generate_graph()
Generate a caugi using Erdős-Rényi.

Metrics

aid()
Adjustment Identification Distance
hd()
Hamming Distance
shd()
Structural Hamming Distance

Edge Registry

register_caugi_edge()
Register a new edge type in the global registry.
caugi_registry() reset_caugi_registry() seal_caugi_registry()
caugi edge registry

Methods

length
Length of a caugi
print
Print a caugi

Conversions

as_adjacency()
Convert a caugi to an adjacency matrix
as_bnlearn()
Convert a caugi to a bnlearn network
as_caugi()
Convert to a caugi
as_dagitty()
Convert a caugi to a dagitty graph
as_igraph()
Convert a caugi to an igraph object

Operatoins

moralize()
Moralize a DAG
mutate_caugi()
Mutate caugi class
skeleton()
Get the skeleton of a graph