powered by
This is a collection of functions computing the inner product between two networks.
ipro_frobenius(x, y, representation = "laplacian")
A scalar measuring the angle between the two input networks.
An igraph object or a matrix representing an underlying network.
igraph
An igraph object or a matrix representing an underlying network. Should have the same number of vertices as x.
x
A string specifying the desired type of representation, among: "adjacency", "laplacian", "modularity" or "graphon". Default is "laplacian".
"adjacency"
"laplacian"
"modularity"
"graphon"
g1 <- igraph::sample_gnp(20, 0.1) g2 <- igraph::sample_gnp(20, 0.2) ipro_frobenius(g1, g2, "adjacency")
Run the code above in your browser using DataLab