Learn R Programming

HEMDAG (version 2.1.3)

write.graph: Write a directed graph on file

Description

An object of class graphNEL is read and the graph is written on a plain text file as sequence of rows

Usage

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

Arguments

g

a graph of class graphNEL

file

name of the file to be written

Value

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

Examples

Run this code
# NOT RUN {
data(graph);
write.graph(g, file="graph.edges.txt");
# }

Run the code above in your browser using DataLab