Skip to content

Instantly share code, notes, and snippets.

@nlacasse
Created January 25, 2013 00:37
Show Gist options
  • Save nlacasse/4630367 to your computer and use it in GitHub Desktop.
Save nlacasse/4630367 to your computer and use it in GitHub Desktop.
connect resource node
(defn connect-resource-nodes!
[inserter node1 node2 label]
(let [relationship (DynamicRelationshipType/withName label)]
(.createRelationship inserter node1 node2 relationship nil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment