Description Usage Arguments Value Author(s) References Examples
Calculate jaccard coefficients of all nodes w.r.t. a hub differential node which help in formation of approximate block diagonals
1 | calculate_jaccard(nodeid, matrix_A, mink)
|
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. |
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.
Raghvendra Mall <rmall@hbku.edu.qa>
Rpack:bibtexRdpack
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.