Description Usage Arguments Value Author(s) Examples
View source: R/graph_from_file.R
This function reads an input file to a PAFit_net
object. Accepted formats are the edgelist format or the gml
format.
1 | 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 i at time t without any edge, add a row with format (
If |
type |
String. Indicates whether the network is |
An object of class PAFit_net
containing the network.
Thong Pham thongphamthe@gmail.com
1 2 3 4 5 6 | 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.