headsTails: Find heads and tails

headsTailsR Documentation

Find heads and tails

Description

Lists the (recursive) heads and tails for a CADMG

Usage

headsTails(graph, r = TRUE, by_district = FALSE, sort = 1, intrinsic, max_head)

Arguments

graph

object of class graph, should be a CADMG

r

logical indicating if recursive heads should be used

by_district

logical indicating if results should be returned separated by district

sort

should output be unique/sorted?

intrinsic

optionally, a list of the relevant intrinsic sets of the ADMG

max_head

optional maximum size for each head

Details

The result is a list containing elements of the same length named heads, tails and intrinsic giving the heads, tails and intrinsic sets. If by_district is TRUE then result is a list each of which is of the above format, corresponding to the separate districts of graph.


rje42/ADMGs2 documentation built on Sept. 3, 2024, 7:39 p.m.