show.parents: Inspect subgraph

Description Usage Arguments Details

Description

Print out the edge list corresponding to a subset of nodes in a graph. Useful for inspecting particular nodes of interest in a large graph. Out is indexed by children, with the parents of each node listed to the right of each child.

Usage

1
show.parents(x, nodes, nchar = 4)

Arguments

x

sparsebnFit object.

nodes

character vector containing names of nodes to show.

nchar

integer indicating how many characters of each parent to show in printed output. Use this to control how the output appears on screen, larger numbers allow for longer node names but may present formatting issues for large graphs. Defaults to 4.

Details

Uses partial matching, duplicates are OK and will be duplicated in output.


itsrainingdata/sparsebnUtils documentation built on June 5, 2019, 5:43 p.m.