graph_to_file {PAFit} | R Documentation |
Write the graph in a PAFit_net object to file
Description
This function writes a graph in a PAFit_net
object to an output file. Accepted file formats are the edgelist format or the gml
format.
Usage
graph_to_file(net_object, file_name, format = "edgelist")
Arguments
net_object |
An object of class |
file_name |
A string indicates the file name. |
format |
String. Possible values are If If |
Value
The function writes directly to the output file.
Author(s)
Thong Pham thongphamthe@gmail.com
Examples
library("PAFit")
# a network from Bianconi-Barabasi model
net <- generate_BB(N = 50 , m = 10 , s = 10)
#graph_to_file(net, file_name = "test.gml", format = "gml")