View source: R/graph_from_file.R
graph_from_file | R Documentation |
This function reads an input file to a PAFit_net
object. Accepted formats are the edgelist format or the gml
format.
graph_from_file(file_name, format = "edgelist", type = "directed")
file_name |
A string indicates the file name. |
format |
String. Possible values are If To register a new node
If |
type |
String. Indicates whether the network is |
An object of class PAFit_net
containing the network.
Thong Pham thongphamthe@gmail.com
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")
#reread <- graph_from_file(file_name = "test.gml", format = "gml")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.