mirror of
https://code.sup39.dev/repos/Wqawg
synced 2025-03-20 04:46:22 +09:00
At least in PostgreSQL, at most one reference is allowed. My undirected recursion code used a UNION of two recursive steps, one for each direction. That is invalid, so instead I define a CTE that's a union of the edges and their reverse, and do a single recursion step on that CTE instead of on the edge table itself. |
||
---|---|---|
.. | ||
Graph | ||
Local.hs |