This is a collection of functions computing the inner product between two networks.
Arguments
- x
An
igraph
object or a matrix representing an underlying network.- y
An
igraph
object or a matrix representing an underlying network. Should have the same number of vertices asx
.- representation
A string specifying the desired type of representation, among:
"adjacency"
,"laplacian"
,"modularity"
or"graphon"
. Default is"laplacian"
.
Examples
g1 <- igraph::sample_gnp(20, 0.1)
g2 <- igraph::sample_gnp(20, 0.2)
ipro_frobenius(g1, g2, "adjacency")
#> [1] 8