Created a core.logic recipe for graph querying