Learn R Programming

dodgr (version 0.4.2)

dodgr_to_igraph: Convert a dodgr graph to an igraph.

Description

Convert a dodgr graph to an igraph.

Usage

dodgr_to_igraph(graph, weight_column = "d")

Value

The igraph equivalent of the input. Note that this will not

be a dual-weighted graph.

Arguments

graph

A dodgr graph

weight_column

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

See Also

igraph_to_dodgr

Other conversion: dodgr_deduplicate_graph(), dodgr_to_sf(), dodgr_to_sfc(), dodgr_to_tidygraph(), igraph_to_dodgr()

Examples

Run this code
graph <- weight_streetnet (hampi)
graphi <- dodgr_to_igraph (graph)

Run the code above in your browser using DataLab