Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

tnet_igraph

Exports a tnet network to an igraph object


Description

The tnet_igraph function creates an igraph object from a tnet network.

Usage

tnet_igraph(net,type=NULL, directed=NULL)

Arguments

net

A tnet network

type

type of tnet network, see as.tnet.

directed

if a one-mode networks, this can be set to avoid testing whether the network is directed.

Value

Returns the igraph object.

Note

version 1.0.0, taken, with permission, from package tnet

Author(s)

Tore Opsahl; https://toreopsahl.com

References

Examples

## Load sample data
sample <- rbind(
c(1,2,4),
c(1,3,2),
c(2,1,4),
c(2,3,4),
c(2,4,1),
c(2,5,2),
c(3,1,2),
c(3,2,4),
c(4,2,1),
c(5,2,2),
c(5,6,1),
c(6,5,1))

## Run the programme
tnet_igraph(sample, type="weighted one-mode tnet")

bipartite

Visualising Bipartite Networks and Calculating Some (Ecological) Indices

v2.16
GPL
Authors
Carsten F. Dormann, Jochen Fruend and Bernd Gruber, with additional code from Stephen Beckett, Mariano Devoto, Gabriel Felix, Jose Iriondo, Tove Opsahl, Rafael Pinheiro, Rouven Strauss and Diego Vazquez, also based on C-code developed by Nils Bluethgen, Aaron Clauset/Rouven Strauss and Miguel Rodriguez-Girones
Initial release
2021-02-08

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.