igraph_to_network: Create a "Network" Object from an igraph Object

Description Usage Arguments Value References Examples

Description

This function converts an igraph object to an object compatible with snowboot functions.

Usage

1

Arguments

in_graph

An igraph object. To create igraph objects from field data, see graph_from_edgelist, graph_from_data_frame, graph_from_adjacency_matrix, or read_graph.

Value

A list that contain elements:

edges

The edgelist of the network. A two column matrix where each row is an edge.

degree

The degree sequence of the network, which is an integer vector of length n.

n

The network order.

References

http://igraph.org/

Examples

1
2
hex_ring <- igraph::make_ring(6, directed = FALSE, mutual = FALSE, circular = TRUE)
net <- igraph_to_network(hex_ring)

Nezafati/snowboot documentation built on May 14, 2019, 8:58 a.m.