Learn R Programming

dodgr (version 0.2.8)

igraph_to_dodgr: igraph_to_dodgr

Description

Convert a igraph network to an equivalent dodgr representation.

Usage

igraph_to_dodgr(graph)

Arguments

graph

An igraph network

Value

The dodgr equivalent of the input.

See Also

dodgr_to_igraph

Examples

Run this code
# NOT RUN {
graph <- weight_streetnet (hampi)
graphi <- dodgr_to_igraph (graph)
graph2 <- igraph_to_dodgr (graphi)
identical (graph2, graph) # FALSE
# }

Run the code above in your browser using DataLab