Learn R Programming

osmar (version 1.1-7)

as_igraph: Convert osmar object to igraph

Description

Convert an osmar object to an igraph (see igraph-package).

Usage

as_igraph(obj)

Arguments

obj
An osmar object

Value

An igraph-package graph object

Examples

Run this code
file <- system.file("extdata", "kaufstr.xml", package = "osmar")
raw <- readLines(file)
kaufstr <- as_osmar(xmlParse(raw))
kaufstrGraph <- as_igraph(kaufstr)

Run the code above in your browser using DataLab