logNumMHNeighbours: (Log) Number of neighbouring networks.

Description Usage Arguments Value See Also

View source: R/mcmc-mh.R

Description

Returns the number of acyclic graphs that can be formed by adding, removing or flipping a single edge of the current network

Usage

1
2
  logNumMHNeighbours(routes, adjacency, constraintT,
    maxNumberParents = Inf)

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 numeric of length 1. The log number of neighbouring graphs.

See Also

BNSampler


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