View source: R/SourceCodePTNWNeu.R
number.differences | R Documentation |
This function calculates the differences with respect to the number of edges, clusters (obtained by the Girvan-Newman algorithm) and isolated nodes (i.e. nodes without any edge) between two networks, for both igraph
graphs and the corresponding minimum spanning trees (MSTs).
number.differences(A, B)
A, B |
output results when applying the function |
This function calculates the differences with respect to the number of edges, clusters (obtained by the Girvan-Newman algorithm) and isolated nodes (i.e. nodes without any edge) between two networks, for both igraph
graphs and the corresponding minimum spanning trees (MSTs). It builds on the create.graph
function, which creates igraph
graph and corresponding MST results from adjacency matrices that are produced out of input tables, using an estimation method specified by the user; see the documentation of create.graph
for further information. Differences in numbers of edges, clusters and isolated nodes are overall characteristics that can be employed to compare two networks.
a vector of length 6 containing the graph difference in the number of edges, the graph difference in the number of clusters, the graph difference in the number of isolated nodes, the MST difference in the number of edges, the MST difference in the number of clusters and the MST difference in the number of isolated nodes
A<-create.graph(ExDataA,methodlist=list("Spearman")) B<-create.graph(ExDataB,methodlist=list("Spearman")) number.differences(A,B)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.