Learn R Programming

dodgr (version 0.2.8)

dodgr_to_igraph: dodgr_to_igraph

Description

Convert a dodgr graph to an igraph.

Usage

dodgr_to_igraph(graph, weight_column = "d")

Arguments

graph

A dodgr graph

weight_column

The column of the dodgr network to use as the edge weights in the igraph representation.

Value

The igraph equivalent of the input. Note that this will not be a dual-weighted graph.

See Also

igraph_to_dodgr

Examples

Run this code
# NOT RUN {
graph <- weight_streetnet (hampi)
graphi <- dodgr_to_igraph (graph)
# }

Run the code above in your browser using DataLab