Package: caugi 1.2.0.9000

caugi: Causal Graph Interface

Create, query, and modify causal graphs. 'caugi' (Causal Graph Interface) is a causality-first, high performance graph package that provides a simple interface to build, structure, and examine causal relationships.

Authors:Frederik Fabricius-Bjerre [aut, cre, cph], Johan Larsson [aut], Michael Sachs [aut], Bjarke Hautop Kristensen [aut]

caugi_1.2.0.9000.tar.gz
caugi_1.2.0.9000.zip(r-4.7)caugi_1.2.0.9000.zip(r-4.6)caugi_1.2.0.9000.zip(r-4.5)
caugi_1.2.0.9000.tgz(r-4.6-x86_64)caugi_1.2.0.9000.tgz(r-4.6-arm64)caugi_1.2.0.9000.tgz(r-4.5-x86_64)caugi_1.2.0.9000.tgz(r-4.5-arm64)
caugi_1.2.0.9000.tar.gz(r-4.7-arm64)caugi_1.2.0.9000.tar.gz(r-4.7-x86_64)caugi_1.2.0.9000.tar.gz(r-4.6-arm64)caugi_1.2.0.9000.tar.gz(r-4.6-x86_64)
caugi_1.2.0.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
DESCRIPTION |NEWS
card.svg |card.png
caugi/json (API)

# Install 'caugi' in R:
install.packages('caugi', repos = c('https://frederikfabriciusbjerre.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/frederikfabriciusbjerre/caugi/issues

Pkgdown/docs site:https://caugi.org

On CRAN:

Conda:

rustcargo

8.92 score 16 stars 1 packages 32 scripts 352 downloads 102 exports 2 dependencies

Last updated from:9132500258. Checks:13 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK285
linux-devel-x86_64OK240
source / vignettesOK351
linux-release-arm64OK297
linux-release-x86_64OK298
macos-release-arm64OK170
macos-release-x86_64OK393
macos-oldrel-arm64OK175
macos-oldrel-x86_64OK600
windows-develOK285
windows-releaseOK300
windows-oldrelOK318
wasm-releaseOK211

Exports:add_edgesadd_nodesadjustment_setaidall_adjustment_sets_admgall_backdoor_setsancestorsanteriorsas_adjacencyas_bnlearnas_caugias_dagittyas_igraphbuildcaugicaugi_default_optionscaugi_deserializecaugi_dotcaugi_exportcaugi_graphmlcaugi_layoutcaugi_layout_bipartitecaugi_layout_circlecaugi_layout_fruchterman_reingoldcaugi_layout_kamada_kawaicaugi_layout_sugiyamacaugi_layout_tieredcaugi_mermaidcaugi_optionscaugi_plotcaugi_registrycaugi_serializechildrencompare_proxy.caugi::caugicondition_marginalized_separateddag_from_pdagdescendantsdistrictsEedge_typesedgesexogenizeexogenousgenerate_graphhdis_acyclicis_admgis_agis_caugiis_cpdagis_dagis_empty_caugiis_magis_mpdagis_pdagis_simpleis_ugis_valid_adjustment_admgis_valid_backdoorlatent_projectlengthlist_caugi_edgesm_separatedmarkov_blanketmeek_closureminimal_d_separatorminimal_separatormoralizemutate_caugineighborsneighboursnodesnormalize_latent_structureparentsplotposteriorsprintread_caugiread_graphmlregister_caugi_edgeremove_edgesremove_nodesreset_caugi_registrysame_nodesseal_caugi_registryset_edgesshdsimulate_dataskeletonspousessubgraphto_dotto_graphmlto_mermaidtopological_sortVverticeswrite_caugiwrite_dotwrite_graphmlwrite_mermaid

Dependencies:data.tableS7

Visualizing Causal Graphs with caugi
Basic Plotting | Layout Algorithms | Sugiyama (Hierarchical Layout) | Fruchterman-Reingold (Spring-Electrical) | Kamada-Kawai (Stress Minimization) | Bipartite Layout | Tiered Layouts | Circle Layout | Comparing Layouts | Customizing Plots | Node Styling | Edge Styling | Automatic Edge Routing | Partial Edges | Label Styling | Styling Tiered Layouts | Working with Different Graph Types | Partially Directed Acyclic Graphs (PDAGs) | Acyclic Directed Mixed Graphs (ADMGs) | Undirected Graphs (UGs) | Plot Composition | Basic Composition | Nested Compositions | Configuring Spacing | Global Plot Options | Setting Default Styles | Per-Plot Overrides | Available Options | Advanced Usage | Manual Layouts | Integration with Grid Graphics | References

Last update: 2026-07-02
Started: 2025-12-16

Performance
Design Choices | Compressed Sparse Row (CSR) Representation | Mutation and Lazy Building | Comparison | Relational Queries | Ancestors and Descendants | Markov Blanket | D-Separation | Subgraph Extraction | Summary | Reproducing These Benchmarks | Session Info

Last update: 2026-06-23
Started: 2025-10-20

Comparisons with Other Packages
Overview | Scope | Graph Types Supported | Graph Queries and Structural Operations | Causal-Inference Algorithms | I/O and Interoperability | Implementation and Ergonomics | Contributing

Last update: 2026-06-17
Started: 2026-05-26

caugi
The caugi object | Properties | session | simple | graph_class | Querying the caugi | Modifying the caugi | Graph metrics | There you go! | Appendix | Advanced properties | name_index_map

Last update: 2026-03-10
Started: 2026-02-25

Motivation
Representation of causal graphs | Safety | Performance

Last update: 2026-03-10
Started: 2025-10-20

How to use caugi in a package
The setup | We know the nodes! | Adding edges based on correlation | Trying it out | Class of the output | That's it!

Last update: 2026-02-16
Started: 2025-10-20

Saving and Sharing Graphs with the Caugi Format
Overview | Quick Start | Writing Graphs | Reading Graphs | The Caugi Format | Structure | Key Features | Edge Types | Working with the Format | String Serialization | Metadata | Different Graph Types | File Extension Convention | Schema Validation | Performance

Last update: 2026-02-16
Started: 2025-12-18

Readme and manuals

Help Manual

Help pageTopics
Compose Plots Horizontallyadd-caugi_plot-caugi_plot pipe-caugi_plot-caugi_plot
Compute an adjustment setadjustment_set
Adjustment Identification Distanceaid
Get all valid adjustment sets in an ADMGall_adjustment_sets_admg
Get all backdoor sets up to a certain size.all_backdoor_sets
Get ancestors of nodes in a 'caugi'ancestors
Get anteriors of nodes in a 'caugi'anteriors
Convert a caugi to an adjacency matrixas_adjacency
Convert a caugi to a bnlearn networkas_bnlearn
Convert to a 'caugi'as_caugi
Convert a caugi to a dagitty graphas_dagitty
Convert a caugi to an igraph objectas_igraph
Build the 'caugi' graphbuild
Create a 'caugi' from edge expressions.caugi
Default options for caugicaugi_default_options
Deserialize caugi Graph from JSON Stringcaugi_deserialize
S7 Class for DOT Exportcaugi_dot
S7 Base Class for Caugi Exportscaugi_export
S7 Class for GraphML Exportcaugi_graphml
Compute Graph Layoutcaugi_layout
Bipartite Graph Layoutcaugi_layout_bipartite
Circle Layoutcaugi_layout_circle
Fruchterman-Reingold Force-Directed Layoutcaugi_layout_fruchterman_reingold
Kamada-Kawai Stress Minimization Layoutcaugi_layout_kamada_kawai
Sugiyama Hierarchical Layoutcaugi_layout_sugiyama
Tiered Graph Layoutcaugi_layout_tiered
S7 Class for Mermaid Exportcaugi_mermaid
Get or set global options for caugicaugi_options
S7 Class for caugi Plotcaugi_plot
Serialize caugi Graph to JSON Stringcaugi_serialize
Manipulate nodes and edges of a 'caugi'add_edges add_nodes caugi_verbs remove_edges remove_nodes set_edges
Get children of nodes in a 'caugi'children
Marginalize and/or condition on variables in an ancestral graph (AG)condition_marginalize
Are X and Y d-separated given Z?d_separated
Extend a PDAG to a DAG using the Dor-Tarsi Algorithmdag_from_pdag
Get descendants of nodes in a 'caugi'descendants
Get districts (c-components) of an ADMG or AGdistricts
Compose Plots Verticallydivide-caugi_plot-caugi_plot
Get the edge types of a 'caugi'.edge_types
Get edges of a 'caugi'.E edges
Exogenize a graphexogenize
Get all exogenous nodes in a 'caugi'exogenous
Export Format Classesexport-classes
Caugi Native Format Serializationformat-caugi
DOT Format Export and Importformat-dot
GraphML Format Export and Importformat-graphml
Mermaid Format Exportformat-mermaid
Generate a 'caugi' using Erdős-Rényi.generate_graph
Hamming Distancehd
Is the 'caugi' acyclic?is_acyclic
Is the 'caugi' graph an ADMG?is_admg
Is the 'caugi' graph an AG?is_ag
Is it a 'caugi' graph?is_caugi
Is the 'caugi' graph a CPDAG?is_cpdag
Is the 'caugi' graph a DAG?is_dag
Is the 'caugi' graph empty?is_empty_caugi
Is the 'caugi' graph a MAG?is_mag
Is the 'caugi' graph an MPDAG?is_mpdag
Is the 'caugi' graph a PDAG?is_pdag
Is the 'caugi' graph simple?is_simple
Is the 'caugi' graph an UG?is_ug
Is a set a valid adjustment set in an ADMG?is_valid_adjustment_admg
Is a backdoor set valid?is_valid_backdoor
Knit Print Method for caugi_exportknit_print.caugi_export
Project latent variables from a DAG to an ADMGlatent_project
Length of a 'caugi'length
M-separation test for AGs and ADMGsm_separated
Get Markov blanket of nodes in a 'caugi'markov_blanket
Apply Meek closure to a PDAGmeek_closure
Compute a minimal separatorminimal_d_separator minimal_separator
Moralize a DAGmoralize
Mutate 'caugi' classmutate_caugi
Get neighbors of nodes in a 'caugi'neighbors neighbours
Get nodes or edges of a 'caugi'nodes V vertices
Normalize latent structure in a DAGnormalize_latent_structure
Get parents of nodes in a 'caugi'parents
Create a caugi Graph Plot Objectplot
Get posteriors of nodes in a 'caugi'posteriors
Print a 'caugi'print
Read caugi Graph from Fileread_caugi
Read GraphML File to caugi Graphread_graphml
Register a new edge type in the global registry.register_caugi_edge
'caugi' edge registrycaugi_registry list_caugi_edges registry reset_caugi_registry seal_caugi_registry
Same nodes?same_nodes
Structural Hamming Distanceshd
Simulate data from a 'caugi' DAG.simulate_data
Get the skeleton of a graphskeleton
Get spouses (bidirected neighbors) of nodes in an ADMGspouses
Get the induced subgraphsubgraph
Export caugi Graph to DOT Formatto_dot
Export caugi Graph to GraphML Formatto_graphml
Export caugi Graph to Mermaid Formatto_mermaid
Get a topological ordering of a DAGtopological_sort
Write caugi Graph to Filewrite_caugi
Write caugi Graph to DOT Filewrite_dot
Write caugi Graph to GraphML Filewrite_graphml
Write caugi Graph to Mermaid Filewrite_mermaid