Compute transitive closure on graphs to infer implicit relationships and expand graphs with logically implied connections. Supports multiple algorithms and cycle detection for dependency analysis, hierarchies, and reachability.