alg_generic ported to cljx but does not work
graph looks ok