This retrieves a list of vertex attribute names.

get_vertex_attribute_names(g)

Arguments

g

A nctx graph

Value

The names of the graph attributes

Details

Use these names in get_vertex_attribute or get_vertex_attributes later.

See also

Examples

library(RUnit) library(nctx) file <- system.file("extdata", "bcde.ctx.dir.graphml", package="nctx") g <- load_graph(file, directed = TRUE) prop_names <- get_vertex_attribute_names(g) checkTrue(all(prop_names %in% c("context","distance_to_A","distance_to_B","distance_to_C","distance_to_D","distance_to_E","distance_to_F","distance_to_G","distance_to_H","distance_to_I","distance_to_J","name")))
#> [1] TRUE