R/networkGraphs.R
getVertexCategories.Rd
This function returns a list of graph vertex attribute names that match a category attribute prefix format and their unique values.
getVertexCategories(g, cat_prefix = "vosonCA_")
igraph graph
object.
Character string. Category attribute prefix format to match. Default is "vosonCA_"
.
A named list of vertex category attributes and values.
if (FALSE) {
# get a list of voson vertex categories and values
g <- loadPackageGraph("DividedTheyBlog_40Alist_release.graphml")
vcats <- getVertexCategories(g)
# vcats
# $Stance
# [1] "conservative" "liberal"
}