pub fn dag_longest_path_filtered<G, F>(
graph: &G,
allows_edge: F,
) -> Result<Option<WeightedPath<G::Node>>>Expand description
Returns a deterministic longest path over accepted DAG edges.
ยงErrors
Returns an error when the accepted subgraph is cyclic or the length overflows.