Learn R Programming

RGraph2js (version 1.0.0)

getAdjMat: Get a RGraph2js compatible adjacency matrix from the provided R object.

Description

Get a RGraph2js compatible adjacency matrix from the provided R object.

Usage

getAdjMat(A)

Arguments

A
signed weighted adjacency matrix or an instance of the class graphAM, graphBAM, graphNEL or clusterGraph from the graph package

Value

the RGraph2js compatible adjacency matrix