barrenSets: Get barren subsets

View source: R/Family.R

barrenSetsR Documentation

Get barren subsets

Description

Return list of barren subsets up to specified size

Usage

barrenSets(
  graph,
  topOrder,
  max_size,
  same_dist = FALSE,
  sort = 1,
  return_anc_sets = FALSE
)

Arguments

graph

object of class mixedgraph

topOrder

optionally, a topological order

max_size

integer giving maximum size to consider

same_dist

logical: should barren sets be in the same district?

sort

integer:1 for unique but unsorted, 2 for sorted.

return_anc_sets

logical: return ancestral sets for each vertex as an attribute?

Details

Uses clique algorithm on a suitable undirected graph.

Warning: Doesn't work for cyclic graphs.


rje42/MixedGraphs documentation built on March 20, 2024, 8:09 a.m.