as.PAFit_net | R Documentation |
This function converts a graph stored in an edgelist matrix format to a PAFit_net
object.
as.PAFit_net(graph, type = "directed", PA = NULL, fitness = NULL)
graph |
An edgelist matrix. Each row is assumed to be of the form ( To register a new node
|
type |
String. Indicates whether the network is |
PA |
Numeric vector. Contains the PA function. Default value is |
fitness |
Numeric vector. Contains node fitnesses. Default value is |
An object of class PAFit_net
Thong Pham thongphamthe@gmail.com
library("PAFit")
# a network from Bianconi-Barabasi model
net <- generate_BB(N = 50 , m = 10 , s = 10)
as.PAFit_net(net$graph)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.