pub fn rule_graph(grammar: &Grammar) -> RuleGraph
Build a directed call graph: edge A→B means rule A references rule B.