powered by
Read an object of class graphNEL and write the graph as sequence of rows on a plain text file.
graphNEL
write.graph(g, file = "graph.txt.gz")
a graph of class graphNEL.
name of the file to be written. The extension of the file can be plain (".txt") or compressed (".gz").
A plain text file representing the graph. Each row corresponds to an edge represented through a pair of vertexes separated by blank.
# NOT RUN { data(graph); file <- tempfile(); write.graph(g, file=file); # }
Run the code above in your browser using DataLab