powered by
This function converts an igraph object (of package igraph) to a PAFit_net object.
igraph
PAFit_net
from_igraph(net)
The function returns a PAFit_net object.
An object of class igraph.
Thong Pham thongphamthe@gmail.com
library("PAFit") # a network from Bianconi-Barabasi model net <- generate_BB(N = 50 , m = 10 , s = 10) igraph_graph <- to_igraph(net) back <- from_igraph(igraph_graph)
Run the code above in your browser using DataLab