as.PAFit_net {PAFit} | R Documentation |
Converting an edgelist matrix to a PAFit_net object
Description
This function converts a graph stored in an edgelist matrix format to a PAFit_net
object.
Usage
as.PAFit_net(graph, type = "directed", PA = NULL, fitness = NULL)
Arguments
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 |
Value
An object of class PAFit_net
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)
as.PAFit_net(net$graph)