Comment Comment by SQLite The Common Table Expression feature of SQL is very good at walking graphs. See, for example <https://sqlite.org/lang_with.html#queries_against_a_graph>. parent SQLite 9 months ago