Hi Las, Currently the graph topology is fixed at compile time, and cannot be changed by the values flowing through it.
In such situations, we either: - Have two copies of the graph with different node functions for N2 (i.e., when generating different types of newsfeeds, from our original blog example) and call different ones depending on input type - Put the conditional into a single node N2 It's hard to say more without knowing about your specific use case. If you want to share details, I'd like to listen, either here or off-list. Cheers, Jason On Wednesday, February 6, 2013 1:08:53 AM UTC-8, Las wrote: > > Hi, > > Good stuff! I was wondering how do you guys deal with "decision nodes" or > does is make sense to model such a thing at the nodel level. > > Imagine having a diamond topology e.g. > N1 > / \ > N2a N2b > \ / > N3 > > based on some input to N1, either N2a or N2b gets computed on which N3 > depends. > > Does this make sense or should this "decision" step be wrapped in a node > "N2". > > Thanks, > > Las > > 2013/1/29 Aria Haghighi <m...@aria42.com <javascript:>> > >> Hey all, >> >> Prismatic has open-sourced our Plumbing and Graph library on >> github<https://github.com/prismatic/plumbing>. >> Jason Wolfe gave a >> talk<http://blog.getprismatic.com/blog/2012/10/1/prismatics-graph-at-strange-loop.html>about >> how we use graph for systems composition at Strange loop last year. >> Please give the library >> a whirl and let us know if you're using it and if you find any issues or >> feature requests. We use this library very heavily throughout our code and >> hope others find it useful as well. >> >> Best, Aria >> >> -- >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group. >> To post to this group, send email to clo...@googlegroups.com<javascript:> >> Note that posts from new members are moderated - please be patient with >> your first post. >> To unsubscribe from this group, send email to >> clojure+u...@googlegroups.com <javascript:> >> 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 unsubscribe from this group and stop receiving emails from it, send an >> email to clojure+u...@googlegroups.com <javascript:>. >> For more options, visit https://groups.google.com/groups/opt_out. >> >> >> > > > > -- > László Török > -- -- 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 unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.