pub fn get_upstream_nodes(
graph: &Graph,
target_node: StableId,
) -> HashSet<StableId>Expand description
Returns all nodes that are upstream (ancestors) of the target node, including the target itself. Only considers Normal edges (not Feedback) to avoid capturing entire feedback loops if not necessary.