MURAL - Maynooth University Research Archive Library



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


    Lu, Binbin and Sun, Huabo and Harris, Paul and 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

    [img]
    Preview
    Download (3MB) | Preview


    Share your research

    Twitter Facebook LinkedIn GooglePlus Email more...



    Add this article to your Mendeley library


    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: https://doi.org/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
    URI:

    Repository Staff Only(login required)

    View Item Item control page

    Downloads

    Downloads per month over past year