operation {BCDAG}R Documentation

Perform local moves given a DAG (internal function)

Description

This function locally modifies a DAG by inserting (op = 1), deleting (op = 2) or reversing (op = 3) an edge between two nodes

Usage

operation(op, A, nodes)

Arguments

op

numerical type in {1,2,3} of the operator applied to DAG

A

(q,q) adjacency matrix of the input DAG

nodes

numerical labels of nodes on which the operator is applied, a (2,1) vector

Value

The (q,q) adjacency matrix of the modified DAG


[Package BCDAG version 1.0.0 Index]