calculate_jaccard: Calculate jaccard coefficient w.r.t. to a hub differential...

Description Usage Arguments Value Author(s) References Examples

Description

Calculate jaccard coefficients of all nodes w.r.t. a hub differential node which help in formation of approximate block diagonals

Usage

1
calculate_jaccard(nodeid, matrix_A, mink)

Arguments

nodeid

Id of the hub differential node

matrix_A

Noisy differential topological adjacency matrix

mink

Minimum number of neighbours that each node should have in common with hub node to have a non-zero Jaccard co-efficient.

Value

Returns a data-frame with fields: jaccard_coefficient, intersection_length and degree. Here jaccard_coefficient between hub node and every node, intersection_length is number of common nodes and degree represents degree of each node in differential topological matrix.

Author(s)

Raghvendra Mall <rmall@hbku.edu.qa>

References

\insertRef

Rpack:bibtexRdpack

Examples

1
2
3
4
5
6
7
8
library(igraph)
mink<-7;
g_A <- sample_grg(200, 0.15, torus=FALSE, coords = FALSE)
A <- get.adjacency(g_A)
nodeid <- 1;

#Calculate Jaccard coefficient of all nodes w.r.t. nodeid 1 given the adjacency matrix A
output <- calculate_jaccard(nodeid,A,mink)

DCD documentation built on May 2, 2019, 9:29 a.m.

Related to calculate_jaccard in DCD...