write.graph: Write a directed graph on file

Description Usage Arguments Value Examples

View source: R/graph.utility.R

Description

Read an object of class graphNEL and write the graph as sequence of rows on a plain text file.

Usage

1
write.graph(g, file = "graph.txt.gz")

Arguments

g

a graph of class graphNEL.

file

name of the file to be written. The extension of the file can be plain (".txt") or compressed (".gz").

Value

A plain text file representing the graph. Each row corresponds to an edge represented through a pair of vertexes separated by blank.

Examples

1
2
3
data(graph);
file <- tempfile();
write.graph(g, file=file);

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