Editing
CausalStructures.add_edges — Function
add_edges(cg::CausalGraph, es::CausalEdge...) -> CausalGraphReturn a new graph of the same class with edges es added. Nodes referenced by any edge are added automatically if not already present.
cg::CausalGraph: the graph to add edges to.es::CausalEdge...: the edges to add.
A new CausalGraph of the same class as cg.
CausalStructures.remove_edges — Function
remove_edges(cg::CausalGraph, es::CausalEdge...) -> CausalGraphReturn a new graph of the same class with edges es removed. Nodes that become isolated are retained. Throws ArgumentError if any edge in es is not present.
cg::CausalGraph: the graph to remove edges from.es::CausalEdge...: the edges to remove.
A new CausalGraph of the same class as cg.
ArgumentError: if any edge inesis not present incg.
CausalStructures.add_nodes — Function
add_nodes(cg::CausalGraph, ns::Symbol...) -> CausalGraphReturn a new graph of the same class with isolated nodes ns added. Nodes already present are ignored.
cg::CausalGraph: the graph to add nodes to.ns::Symbol...: the nodes to add.
A new CausalGraph of the same class as cg, or cg itself if every node in ns is already present.
CausalStructures.remove_nodes — Function
remove_nodes(cg::CausalGraph, ns::Symbol...) -> CausalGraphReturn a new graph of the same class with nodes ns and all their incident edges removed. Throws ArgumentError if any node in ns is not present.
cg::CausalGraph: the graph to remove nodes from.ns::Symbol...: the nodes to remove.
A new CausalGraph of the same class as cg.
ArgumentError: if any node innsis not present incg.
CausalStructures.reclass — Function
reclass(cg::CausalGraph, T::Type{<:CausalGraph}) -> TReinterpret cg's nodes and edges as a graph of class T. Throws an error if the edges violate the structural constraints of T.