birewire.slum.to.sparseMatrix {BiRewire}R Documentation

The function transforms a triplet sparse matrix from slum package to a Matrix sparse matrix.

Description

Transform a triplet sparse matrix from slum package to a Matrix sparse matrix that can be used by igraph for creating a network. This function could be used in order to analyze graphs obtained from samplers routines (birewire.sampler.undirected,birewire.sampler.dsg and birewire.sampler.bipartite.)

Usage

birewire.slum.to.sparseMatrix( simple_triplet_matrix_sparse)

Arguments

simple_triplet_matrix_sparse

A triplet sparse matrix, usually the object coming from read_stm_CLUTO.

Value

Returns an Matrix sparse matrix that could be used for building an igraph graph using graph.adjacency.

Author(s)

Andrea Gobbi
Maintainer: Andrea Gobbi <gobbi.andrea@mail.com>


[Package BiRewire version 3.26.0 Index]