View source: R/graph.utility.R
read.graph | R Documentation |
Read a directed graph from a file and build a graphNEL
object.
read.graph(file = "graph.txt.gz")
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"). |
An object of class graphNEL
.
ed <- system.file("extdata/graph.edges.txt.gz", package= "HEMDAG"); g <- read.graph(file=ed);
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.