Extract Vertices from a Graph Result
Examples
chain <- create.graph("chain", n = 5)
extrema <- detect.local.extrema(graph.adjacency(chain), graph.lengths(chain), y = c(1, 3, 1, 2,
0), max.radius = 1, min.neighborhood.size = 2)
vertices(extrema, extrema$labels[[1]])
#> [1] 1 2 3