birewire.similarity.dsg {BiRewire} | R Documentation |
Compute the Jaccard similarity index between dsg objects described in the same way (matrices of graphs).
birewire.similarity.dsg( m1,m2)
m1 |
First dsg; |
m2 |
Second dsg. |
See birewire.similarity
for more details.
Returns the Jaccard similarity index between the objects.
Andrea Gobbi
Maintainer: Andrea Gobbi <gobbi.andrea@mail.com>
library(BiRewire) data(test_dsg) dsg <- birewire.induced.bipartite(test_dsg,sparse=FALSE) birewire.similarity.dsg(dsg,birewire.rewire.dsg(dsg)) dsg <- birewire.induced.bipartite(test_dsg,sparse=TRUE) birewire.similarity.dsg(dsg,birewire.rewire.dsg(dsg))