Learn R Programming

gRbase (version 1.8-5.1)

graph_coerce_api: API for coercing graph representations

Description

API for coercing graph representations.

Usage

gn2dm_(object)

gn2sm_(object)

gn2ig_(object)

dm2gn_(object)

dm2sm_(object)

dm2ig_(object)

sm2gn_(object)

sm2dm_(object)

sm2ig_(object)

ig2gn_(object)

ig2dm_(object)

ig2sm_(object)

xm2gn_(object)

xm2ig_(object)

xm2dm_(object)

xm2sm_(object)

xm2xm_(object, result = "matrix")

gn2xm_(object, result = "matrix")

gn2ftM_(object)

gn2tfM_(object)

Arguments

object

An object representing a graph

result

Either 'matrix' (dense) or 'dgCMatrix' (sparse, can be abbreviated to 'Matrix').

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)

See Also

ug, dag