% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/netvis.R
\name{detect_communities}
\alias{detect_communities}
\title{Detect communities in a graph}
\usage{
detect_communities(nodes, edges)
}
\arguments{
\item{nodes}{Character vector of node IDs.}

\item{edges}{A data frame or list of edges, each with \code{source} and
\code{target} fields.}
}
\value{
A \code{\link[tibble:tibble]{tibble::tibble()}} with columns \code{node_id} and \code{community_id}.
}
\description{
POST a graph (nodes + edges) to the server for community detection.
}
\examples{
\dontrun{
detect_communities(
  nodes = c("A", "B", "C"),
  edges = data.frame(source = c("A", "B"), target = c("B", "C"))
)
}
}
