read.graph: Read a directed graph from a file

Description Usage Arguments Value Examples

View source: R/graph.utility.R

Description

Read a directed graph from a file and build a graphNEL object.

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 vertexes separated by blanks. The extension of the file can be plain (".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);

Example output

HEMDAG: Hierarchical Ensemble Methods for DAG-structured taxonomies
Please cite HEMDAG if you use it: see citation('HEMDAG') for details

HEMDAG documentation built on Feb. 12, 2021, 5:13 p.m.