from_igraph: Convert an igraph object to a PAFit_net object

View source: R/from_igraph.R

from_igraphR Documentation

Convert an igraph object to a PAFit_net object

Description

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

Usage

  from_igraph(net)

Arguments

net

An object of class igraph.

Value

The function returns a PAFit_net object.

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)
  igraph_graph <- to_igraph(net)
  back         <- from_igraph(igraph_graph)

thongphamthe/PAFit documentation built on March 30, 2024, 4:14 p.m.