tomatrix: 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)
Value
a list(summary, G, attribs)
summary is a dataframe containing characteristics of the supplied object
G is an adjacency/incidence matrix
attribs is a dataframe containing node characteristics if present in graph
Arguments
graph
A graph object of class "matrix", "sparseMatrix", "dataframe", igraph.