tnet_igraph: Exports a tnet network to an igraph object

Description Usage Arguments Value Note Author(s) References Examples

Description

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

Usage

1
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; http://toreopsahl.com

References

http://toreopsahl.com/

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
## 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 documentation built on May 19, 2017, 11:36 p.m.

Search within the bipartite package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.