powered by
An object of class graphNEL is read and the graph is written on a plain text file as sequence of rows
graphNEL
write.graph(g, file = "graph.txt")
a graph of class graphNEL
name of the file to be written
a plain text file representing the graph. Each row corresponds to an edge represented through a pair of vertices separated by blanks
# NOT RUN { data(graph); write.graph(g, file="graph.edges.txt"); # }
Run the code above in your browser using DataLab