The problem:
$$
\begin{align}
\arg\max_{f} \prod_e P(k_e \mid f_e) &=
\arg\min_{f} \sum_e \lambda_e f_e l_e -
k_e \ln(\lambda_e f_e l_e)
\end{align}
$$
Subject to a set of linear constraint defined by the graph and
the property of “flow”
Convex optimization problem and thus in P
Why min-cost flow
The sample genome is a walk in the graph
However that's the same as genome assembly
Only need the traversal counts
Classical problem could be solved in P, e.g. linear programming