tomatrix {backbone}R Documentation

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

Description

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

Usage

tomatrix(graph)

Arguments

graph

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

Value

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

Examples

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

[Package backbone version 2.0.2 Index]