Comparing and testing network objects
Compare or test network objects for (near) equality.
network objects, currently
logical, whether to perform the test or return comparison data, see Details
other arguments, currently ignored
current can be network
objects of one of the supported classes. They do not have
to be of the same class though.
The function does a series of comparisons between
The network structure comparison is made based on adjacency matrices (mind this when using for huge networks).
Network/edge/vertex attributes are checked for presence in both objects.
Common network/edge/vertex attribures are checked for equality.
All the results are collected in a list
netcompare with an associated
test is TRUE then instead of the detailed test
results the function returns TRUE or FALSE depending on
some of the checks resulted positively. Currently
attribute checks are ignored, i.e. what is taken into
Equivalence of adjacency matrices
Directed / undirected character of the network
Edge set size
Vertex set size
Depending on the value of
test either an object of
netcompare containing the results of all the
test=FALSE) or (if
logical whether or not the networks are (nearly) the