Learn R Programming

deal (version 1.1-2)

nwequal: Test if the graphs of two networks are equal

Description

Given two network objects, the nodes in the nodelists are compared by examining if their parents are the same.

Usage

nwequal(nw1,nw2)

Arguments

nw1
First network
nw2
Second network

Value

  • TRUE if the network graphs are equal, FALSE otherwise.

Details

The networks are assumed to have the same number of nodes and the nodes are assumed to represent the same stochastic variables. Sequentially the nodes' parents are compared and if they differ, FALSE is returned.

References

Further information about Deal can be found at: http://www.math.auc.dk/novo/deal.