clojure: moved some functions from common/util to common/graphs