Learn R Programming

HEMDAG (version 2.1.3)

read.graph: Read a directed graph from a file

Description

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

Usage

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

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

Value

an object of class graphNEL

Examples

Run this code
# NOT RUN {
ed <- system.file("extdata/graph.edges.txt", package= "HEMDAG");
g <- read.graph(file=ed);
# }

Run the code above in your browser using DataLab