% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/network.R
\name{build_formula_herb_network}
\alias{build_formula_herb_network}
\title{Build a Formula-Herb network}
\usage{
build_formula_herb_network(formula_id)
}
\arguments{
\item{formula_id}{The formula order ID (integer or character).}
}
\value{
An \code{igraph} graph object with vertex attributes \code{name}, \code{type}
(\code{"formula"}, \code{"herb"}), \code{label}, and \code{dose} (for herbs).
}
\description{
Given a formula order ID, fetches its herb doses and constructs a
star-topology network.
}
\examples{
\dontrun{
g <- build_formula_herb_network(1)
igraph::V(g)$label
}
}
