% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network.R
\name{build_hct_network}
\alias{build_hct_network}
\title{Build an Herb-Compound-Target network}
\usage{
build_hct_network(
  herbs,
  target_method = "drugclip",
  max_compounds = 50L,
  progress = TRUE
)
}
\arguments{
\item{herbs}{Character vector of herb names or UniTCM herb IDs.}

\item{target_method}{Target prediction method passed to
\code{\link[=get_compound_targets]{get_compound_targets()}}: \code{"drugclip"} (default), \code{"chembl"}, or
\code{"both"}.}

\item{max_compounds}{Maximum compounds per herb to include (default 50).}

\item{progress}{Show progress messages (default \code{TRUE}).}
}
\value{
An \code{igraph} graph object with vertex attributes \code{name}, \code{type}
(\code{"herb"}, \code{"compound"}, \code{"target"}), and \code{label}.
}
\description{
Given herb names or IDs, fetches herb-compound-target data from the API
and constructs a typed \code{igraph} network.
}
\examples{
\dontrun{
g <- build_hct_network(c("UNITCM_H001", "UNITCM_H002"))
igraph::vcount(g)
}
}
