tomatrix: Converts an input graph object to an adjacency matrix and...

Description Usage Arguments Value Examples

View source: R/model.helpers.R

Description

Converts an input graph object to an adjacency matrix and identifies its characteristics

Usage

1
tomatrix(graph)

Arguments

graph

A graph object of class "matrix", "sparseMatrix", igraph, matrix or dataframe edgelist, or network

Value

a list(summary, G) 'summary' is a dataframe containing characteristics of the supplied object 'G' is an adjacency matrix

Examples

1
2
M <- matrix(rbinom(5*5,1,.5),5,5)
test <- backbone:::tomatrix(M)

KGodard1/Fastball-SourceCpp documentation built on Dec. 18, 2021, 2:35 a.m.