Skip to contents

get transformations path

Usage

.get_path(g, i, j)

Arguments

g

graphAM

i, j

source and target node label

Examples

x <- file.path("extdata", "blobs.zarr")
x <- system.file(x, package="SpatialData")
x <- readSpatialData(x, tables=FALSE)
g <- SpatialData:::.coord2graph(x)
SpatialData:::.get_path(g, "blobs_labels", "sequence")
#> [[1]]
#> [[1]]$data
#> [1] 3 2
#> 
#> [[1]]$type
#> [1] "scale"
#> 
#> 
#> [[2]]
#> [[2]]$data
#> [1] -50  10
#> 
#> [[2]]$type
#> [1] "translation"
#> 
#>