inner-products: Inner-Products Between Networks

Description Usage Arguments Value Examples

Description

This is a collection of functions computing the inner product between two networks.

Usage

1
ipro_frobenius(x, y, representation = "laplacian")

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 as x.

representation

A string specifying the desired type of representation, among: "adjacency", "laplacian" [default], "modularity" or "graphon".

Value

A scalar measuring the angle between the two input networks.

Examples

1
2
3
g1 <- igraph::sample_gnp(20, 0.1)
g2 <- igraph::sample_gnp(20, 0.2)
ipro_frobenius(g1, g2, "adjacency")

ilovato/nevada documentation built on May 30, 2019, 9:47 p.m.