Free Access Week - Data Engineering + BI
Data Engineering and BI courses are free this week!
Free Access Week - Jun 2-8

backbone (version 1.5.1)

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

Description

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

Usage

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

Run this code
# NOT RUN {
M <- matrix(rbinom(5*5,1,.5),5,5)
test <- backbone:::tomatrix(M)
# }

Run the code above in your browser using DataLab