diffnet_to_igraph: Convertion between graph classes

Description Usage Arguments Value See Also Examples

View source: R/igraph.R

Description

Convertion between graph classes

Usage

1
2
3
diffnet_to_igraph(graph, slices = 1:nslices(graph))

igraph_to_diffnet(graph, toavar, t0 = NULL, t1 = NULL, ...)

Arguments

graph

Either a diffnet or igraph graph object.

slices

An integer vector indicating the slices to subset.

toavar

Character scalar. Name of the attribute that holds the times of adoption.

t0

Integer scalar. Passed to as_diffnet.

t1

Integer scalar. Passed to as_diffnet.

...

Further arguments passed to as_diffnet.

Value

Either a list of length(slices) igraph (diffnet_to_igraph), or a diffnet object (igraph_to_diffnet) objects.

See Also

Other graph formats: netdiffuseR-graphs, read_pajek, read_ucinet_head

Examples

1
2
3
4
5
# Reading the meddical innovation data into igraph --------------------------
x <- diffnet_to_igraph(medInnovationsDiffNet)

# Fetching the times of adoption
igraph::vertex_attr(x[[1]], "toa")

netdiffuseR documentation built on May 19, 2017, 6:39 p.m.

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