
Build a Formula-Herb network
build_formula_herb_network.RdGiven a formula order ID, fetches its herb doses and constructs a star-topology network.
Value
An igraph graph object with vertex attributes name, type
("formula", "herb"), label, and dose (for herbs).
Examples
if (FALSE) { # \dontrun{
g <- build_formula_herb_network(1)
igraph::V(g)$label
} # }