Learn R Programming

caugi (version 1.0.0)

nodes: Get nodes or edges of a caugi

Description

Get nodes or edges of a caugi

Usage

nodes(cg)

vertices(cg)

V(cg)

Value

A data.table with a name column.

Arguments

cg

A caugi object.

See Also

Other queries: ancestors(), anteriors(), children(), descendants(), districts(), edge_types(), edges(), exogenous(), is_acyclic(), is_admg(), is_ag(), is_caugi(), is_cpdag(), is_dag(), is_empty_caugi(), is_mag(), is_pdag(), is_ug(), m_separated(), markov_blanket(), neighbors(), parents(), same_nodes(), spouses(), subgraph(), topological_sort()

Examples

Run this code
cg <- caugi(
  A %-->% B,
  B %-->% C,
  D,
  class = "DAG"
)
nodes(cg) # returns the data.table with nodes A, B, C, D

Run the code above in your browser using DataLab