Skip to content

Instantly share code, notes, and snippets.

@coolgarifTech
Created May 29, 2013 15:04
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 coolgarifTech/5670986 to your computer and use it in GitHub Desktop.
Save coolgarifTech/5670986 to your computer and use it in GitHub Desktop.
An important part of the getRels() function in the script that uses the output from our Cypher query to establish the id's of the start and end point nodes in the various relationships in the graph
for rel in querySquenceObject:
r = rel.pop()
start = r.get('start')
end = r.get('end')
start = urlparse(start)
end = urlparse(end)
startNode = doRegEX(start)
endNode = doRegEX(end)
relsJSON.append(createRelsJSON(startNode, endNode))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment