Skip to content

Instantly share code, notes, and snippets.

@ericnormand
Created February 23, 2010 19:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ericnormand/312559 to your computer and use it in GitHub Desktop.
Save ericnormand/312559 to your computer and use it in GitHub Desktop.
(use 'clj-reasoner)
;; a graph of explicit friendship relations
(def friends-graph
(build-graph [{:s "Andrew" :r "hasFriend" :o "John"}
{:s "Chris" :r "hasFriend" :o "Andrew"}
{:s "Jane" :r "hasFriend" :o "Linda"}
{:s "Jane" :r "hasFriend" :o "Chris"}]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment