ELgraph: A Graph Object

Description Usage Arguments Value Examples

Description

This function allows you to create graph objects from an edge list.

Usage

1
2
ELgraph(edgeList, nodeList = NULL, nodeMap = NULL, clusters = NULL,
  directed = TRUE)

Arguments

edgeList

data.table with a column i and a cloumn j of edges endpoints

nodeList

vector of node names. if NULL, it is derived from the edge list

nodeMap

table of nodes mapped. Can be used when the graph is the result of coarsening

clusters

vector of size length(nodeList) of truth cluster belonging.

directed

boolean value describing if the edges are directed.

Value

A graph object

Examples

1
g = ELgraph(data.table("i"=c(2,5,6,3,2), "j" =c(4,4,3,1,5)))

DavidGilgien/ML.RMCL documentation built on May 6, 2019, 1:54 p.m.