combinatorial_laplacian: Computes the Combinatorial Laplacian for 0- and 1-forms.

Description Usage Arguments Value Examples

View source: R/combinatorial_laplacian.R

Description

Given a nerve or a clique complex, it computes the Combinatorial Laplacians for 0- and 1-forms and the weights of 0- and 1-simplices.

Usage

1

Arguments

g2

an object of the class simplicial containing the nerve or clique complex.

one_forms

when set FALSE only the Combinatorial Laplacian for 0-forms is computed. By default is set to TRUE.

weights

when set to TRUE it takes 2-simplices into account when computing weights. By default is set to FALSE.

Value

Returns a list with the Combinatorial Laplacians for 0- and 1-forms and the weights for 0- and 1-simplices.

Examples

1
2
3
library(RayleighSelection)
gy <- nerve_complex(list(c(1,4,6,10), c(1,2,7), c(2,3,8), c(3,4,9,10), c(4,5)))
combinatorial_laplacian(gy)

CamaraLab/RayleighSelection documentation built on Aug. 16, 2021, 12:01 p.m.