Learn R Programming

PAFit (version 1.2.10)

to_igraph: Convert a PAFit_net object to an igraph object

Description

This function converts a PAFit_net object to an igraph object (of package igraph).

Usage

to_igraph(net_object)

Value

The function returns an igraph object.

Arguments

net_object

An object of class PAFit_net.

Author

Thong Pham thongphamthe@gmail.com

Examples

Run this code
library("PAFit")
# a network from Bianconi-Barabasi model
net          <- generate_BB(N = 50 , m = 10 , s = 10)
igraph_graph <- to_igraph(net)

Run the code above in your browser using DataLab