read.graph: Read a directed graph from a file

Description Usage Arguments Value Examples

View source: R/IO.fun.R

Description

A directed graph is read from a file and a graphNEL object is built.

Usage

1
read.graph(file = "graph.txt.gz")

Arguments

file

name of the file to be read. The format of the file is a sequence of rows and each row corresponds to an edge represented through a pair of vertices separated by blanks. The extension of the file can be or plain format (".txt") or compressed (".gz").

Value

an object of class graphNEL.

Examples

1
2
ed <- system.file("extdata/graph.edges.txt.gz", package= "HEMDAG");
g <- read.graph(file=ed);

gecko515/HEMDAG documentation built on Oct. 18, 2019, 6:34 a.m.