Has anyone ever used https://clojuredocs.org/clojure.walk for things like simple graph traversal? I've been playing around with graph stuff in clojure and am now wondering whether this is the more idiomatic way to work with graph-like structures.
It works well when the graph is actually an unweighted tree with all child nodes being Clojure collections or scalar values inside parent collections. And when your pre/post-walk functions need to know only the value at the current node, regardless of any details of the path to that node. In other words, plenty of limitations when it comes to graphs in general but a very nice library when it comes to nested data structures where each datum can be processed in isolation.
Cool, thank you!
slightly off topic, but I have found that when doing work immutable graphs, converting to adjacency list format makes things much simpler. especially when the graph is cyclic
Yeah, I think that's kind of what I am implicitly doing in my model
I was just wondering whether that's actually a good idea, but it seems my intuition hasn't been completely off there
If you'll excuse the shameless plug, I wrote a library a while back that you might find interesting: https://github.com/ont-app/igraph .
This is the last week for the https://www.surveymonkey.com/r/clojure2025 and we would really like your feedback! In particular, we have a page of questions specifically for new users of Clojure to collect information about how people learn and where they struggle. Thanks!