nwequal {deal}R Documentation

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 an object of class network
nw2 an object of class network

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 parents of the nodes are compared and if they differ, FALSE is returned.

Value

a logical. TRUE if the network graphs are equal, FALSE otherwise.

Author(s)

Susanne Gammelgaard Bøttcher alma@math.auc.dk,
Claus Dethlefsen dethlef@math.auc.dk.

References

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


[Package Contents]