pub fn effective_priority(
ticket: &Ticket,
reverse_index: &HashMap<&str, Vec<&Ticket>>,
) -> u8Expand description
Return the effective priority of a ticket: the max of its own priority and the priority of all direct and transitive dependents reachable via the reverse index. Uses a visited set to handle cycles safely.