% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/gspace-features.R
\name{gs_features-utils}
\alias{gs_features-utils}
\alias{gs_fetch_features}
\alias{gs_add_features}
\title{Manipulate node features in a GraphSpace object}
\usage{
gs_fetch_features(x, vars = NULL, as_df = FALSE)

gs_add_features(x, data)
}
\arguments{
\item{x}{A \code{GraphSpace} object.}

\item{vars}{Character vector specifying feature names to extract.
If \code{NULL}, all features are returned.}

\item{as_df}{Logical. If \code{TRUE}, returns a \code{data.frame}.
Otherwise returns the original backend representation.}

\item{data}{A matrix-like or \code{data.frame} object containing node
features. Rows must correspond to node identifiers.}
}
\value{
\itemize{
\item \code{gs_fetch_features()} returns a matrix-like object or
\code{data.frame} containing the selected node features.

\item \code{gs_add_features()} returns a modified
\code{GraphSpace} object.
}
}
\description{
Utilities for extracting and adding node-associated features stored in the
\code{fdata} container of a \code{GraphSpace} object.
}
