Yup, clojure.contrib.graph is really cool. I'm implementing some pathfinding-stuff with it right now. The generic model (like using a function for the edges) is simple to use and very powerful.
On Sat, Jul 3, 2010 at 4:08 AM, Chas Emerick <cemer...@snowtide.com> wrote: > Take a look at clojure.contrib.graph. It's very basic, but has a nice > generic model. > > - Chas > > On Jul 2, 2010, at 3:15 PM, Mate Toth wrote: > >> I'm building a directed graph library, where the nodes has "out" and >> "in" fields. If I connect a node, let's say: >> (node->node n0 n1) >> then the node's fields would be the following: >> >> n0: >> in: () >> out: (n1) >> >> n1: >> in: (n0) >> out () >> >> >> My problem is that if I update n0 I could only add the old "instance" >> to the list, so when I update n1, n0's out field would would contain >> an outdated n1 also.. >> >> So n00b head I think it's out of the functional paradigm(or I could >> use node-ids and a hash as a graph, but I don't like it), but how you >> guys would solve this problem? Any workaround? >> >> Thanks for your help! M >> >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clojure@googlegroups.com >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/clojure?hl=en > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Moritz Ulrich Programmer, Student, Almost normal Guy http://www.google.com/profiles/ulrich.moritz -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en