recursive-component?

clojure.contrib.graph

  • (recursive-component? g ns)
Is the component (recieved from scc) self recursive?

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source clojure/contrib/graph.clj:151 top

(defn recursive-component?
  "Is the component (recieved from scc) self recursive?"
  [g ns]
  (or (> (count ns) 1)
      (let [n (first ns)]
        (some #(= % n) (get-neighbors g n)))))
Vars in clojure.contrib.graph/recursive-component?: = > count defn let ns or some
Used in 0 other vars

Comments top

No comments for recursive-component?. Log in to add a comment.