as_igraph {osmar}R Documentation

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

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

[Package osmar version 1.1-7 Index]