Learn R Programming

alcyon (version 0.7.0)

links,AxialShapeGraph-method: Get the Axial ShapeGraph links

Description

Get the Axial ShapeGraph links

Usage

# S4 method for AxialShapeGraph
links(map)

Value

A matrix with the linked refs

Arguments

map

An Axial ShapeGraph

Examples

Run this code
# links of an axial map
mifFile <- system.file(
    "extdata", "testdata", "barnsbury",
    "barnsbury_small_axial_original.mif",
    package = "alcyon"
  )
  sfMap <- st_read(mifFile,
    geometry_column = 1L, quiet = TRUE
  )
  shapeGraph <- as(sfMap, "AxialShapeGraph")
linkRefs(shapeGraph, 0L, 9L)
unlinkCoords(shapeGraph, 530923.0, 184041.0, 530956.0, 183887.0)
links(shapeGraph)

Run the code above in your browser using DataLab