MURAL - Maynooth University Research Archive Library



    Shp2graph: Tools to Convert a Spatial Network into an Igraph Graph in R


    Lu, Binbin, Sun, Huabo, Harris, Paul, Xu, Miaozhong and Charlton, Martin (2018) Shp2graph: Tools to Convert a Spatial Network into an Igraph Graph in R. ISPRS International Journal of Geo-Information, 7 (8). ISSN 2220-9964

    [thumbnail of MC_geography_Shp2graph.pdf]
    Preview
    Text
    MC_geography_Shp2graph.pdf

    Download (3MB) | Preview

    Abstract

    In this study, we introduce the R package shp2graph, which provides tools to convert a spatial network into an ‘igraph’ graph of the igraph R package. This conversion greatly empowers a spatial network study, as the vast array of graph analytical tools provided in igraph are then readily available to the network analysis, together with the inherent advantages of being within the R statistical computing environment and its vast array of statistical functions. Through three urban road network case studies, the calculation of road network distances with shp2graph and with igraph is demonstrated through four key stages: (i) confirming the connectivity of a spatial network; (ii) integrating points/locations with a network; (iii) converting a network into a graph; and (iv) calculating network distances (and travel times). Throughout, the required R commands are given to provide a useful tutorial on the use of shp2graph.
    Item Type: Article
    Additional Information: © 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).
    Keywords: R software; igraph; graph data model; network distance; network analysis;
    Academic Unit: Faculty of Social Sciences > Geography
    Item ID: 13126
    Identification Number: 10.3390/ijgi7080293
    Depositing User: Martin Charlton
    Date Deposited: 21 Jul 2020 13:57
    Journal or Publication Title: ISPRS International Journal of Geo-Information
    Publisher: MDPI
    Refereed: Yes
    Related URLs:
    URI: https://mural.maynoothuniversity.ie/id/eprint/13126
    Use Licence: This item is available under a Creative Commons Attribution Non Commercial Share Alike Licence (CC BY-NC-SA). Details of this licence are available here

    Repository Staff Only (login required)

    Item control page
    Item control page

    Downloads

    Downloads per month over past year

    Origin of downloads