write.graph {HEMDAG}R Documentation

Write a directed graph on file

Description

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

Usage

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

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

[Package HEMDAG version 2.7.4 Index]