createGraph: Graph Creation From File

Description Usage Arguments Value Examples

Description

This function creates a graph object from a file containing the edges

Usage

1
2
createGraph(path, nskip = 0, directed = TRUE, norm = TRUE,
  inverse.direction = TRUE)

Arguments

path

string: the path to the file containing the edge list.

nskip

integer: number of lines to skip before starting to read the edges.

directed

boolean: value describing if the edges are directed.

norm

boolean: if TRUE, translate the vertices names so that they are from 1 to n.

inverse.direction

boolean: if FALSE, labels the first column i and the second j, otherwise the inverse. this option is used when creating a graph for the ML-RMCL function, because it understand the edges going from j to i.

Value

A graph object of class ELgraph from the edge list found at path

Examples

1
g = createGraph("graphs/myEdges.txt")

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