graph-coerce-api: API for coercing graph representations

graph-coerce-apiR Documentation

API for coercing graph representations

Description

API for coercing graph representations.

Usage

g_dm2sm_(object)

g_dm2ig_(object)

g_sm2dm_(object)

g_sm2ig_(object)

g_ig2dm_(object)

g_ig2sm_(object)

g_xm2ig_(object)

g_xm2dm_(object)

g_xm2sm_(object)

g_xm2xm_(object, result = "matrix")

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)

Author(s)

Søren Højsgaard, sorenh@math.aau.dk

See Also

ug, dag


gRbase documentation built on Sept. 22, 2023, 5:12 p.m.