Function customGraphToPolynomials
- customGraphToPolynomials<V, E, D>(verts, edges, ops, fn): ReadonlyMap<V, Polynomial<D>>
Parameters
verts: readonly V[]
edges: readonly E[]
Returns ReadonlyMap<V, Polynomial<D>>
- customGraphToPolynomials<V, E, D>(verts, edges, ops, fn): ReadonlyMap<V, Polynomial<D>>
Type Parameters
V
E extends {
from: V;
to: V;
}
D
Parameters
verts: readonly V[]
edges: readonly E[]
Returns ReadonlyMap<V, Polynomial<D>>
Construct production polynomials from a graph of your unit production.
If your application has the following graph...
...here's how to get your polynomials:
See also graphPathsToPolynomials for another way to construct these polynomials.
See also simpleGraphToPolynomials for something simpler, with more restrictions on your graph's format.