edgeIsFlippable: Find flippable edges.

Description Usage Arguments Value See Also

View source: R/mcmc-mh.R

Description

Finds edges in the graph whose direction can be reversed ("flipped") without introducing a cycle into the graph.

Usage

1
2
  edgeIsFlippable(routes, adjacency, constraintT,
    maxNumberParents)

Arguments

routes

The routes matrix of the network

adjacency

The adjacency matrix of the network

constraintT

The transpose of a constraint matrix

maxNumberParents

Integer of length 1. The maximum number of parents of any node.

Value

A logical matrix of the same dimension as the supplied matrices, with entries indicating whether the corresponding edge can be flipped without introducing a cycle. NOTE THIS IS TRANSPOSE OF EXPECTED

See Also

BNSampler, transposeEdgeIsAddable, transposeEdgeIsRemovable, transposeEdgeIsTogglable


rjbgoudie/structmcmc documentation built on Nov. 3, 2020, 3:41 a.m.