getHeadOrder: Get head order from graph

View source: R/maps.R

getHeadOrderR Documentation

Get head order from graph

Description

Get head order from graph

Usage

getHeadOrder(graph, heads, check = FALSE, r = FALSE)

Arguments

graph

an object of class mixedgraph

heads

list of heads

check

logical: should we check that each element of head could actually be a head?

r

logical: should heads be treated as recursive?

Details

Returns integer vector giving a partition suitable ordering for heads. Not certain this works if r=TRUE.


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