graph-coerce-api: API for coercing graph representations
Description
API for coercing graph representations.
Usage
gn2dm_(xx)
gn2sm_(xx)
gn2ig_(xx)
dm2gn_(xx)
dm2sm_(xx)
dm2ig_(xx)
sm2gn_(xx)
sm2dm_(xx)
sm2ig_(xx)
ig2gn_(xx)
ig2dm_(xx)
ig2sm_(xx)
as_(object, Class)
# S3 method for graphNEL
as_(object, Class)
# S3 method for matrix
as_(object, Class)
# S3 method for dgCMatrix
as_(object, Class)
# S3 method for igraph
as_(object, Class)
Arguments
xx
An object representing a graph
object
A graph object
Class
The desired output class
Details
No checking is made. In the function the following names are used:
"ig": "igraph";
"gn": "graphNEL";
"sm": "dgCMatrix" (sparse matrix);
"dm": "matrix" (dense matrix)
The 'as_' functions are experimental and may well change
in the future.