Learn R Programming

fastnet (version 1.0.0)

from.igraph: Transform an igraph object to a fastnet object

Description

Transform an igraph object to an ego-centric list form used in fastnet.

Usage

from.igraph(net.igraph)

Arguments

net.igraph

The input igraph object.

Value

A list containing the nodes of the network and their respective neighbors.

Examples

Run this code
# NOT RUN {
library("igraph")
net.igraph <- erdos.renyi.game(100,0.1)
g <- from.igraph(net.igraph)
# }

Run the code above in your browser using DataLab