You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 23, 2019. It is now read-only.
Then I tried to replicate the same functionality in R.
createNode has the possibility to create multiple labels:
createNode(theGraph,c("Tweet","ReTweet"), ...)
Is it valid getOrCreateNode(theGraph,c("Tweet","ReTweet"), ...)
and
getUniqueNode(graph, c("Tweet","ReTweet"), name = "Alice") ?
Maybe "I'm confused!" and I have to use two different statements for each label to create the nodes, but which would be the best option to retrieve unique nodes with multiple labels?
getOrCreateNode.graph = function(graph, .label, ...) {
**if(!(names(props)[[1]] %in% getConstraint(graph, .label)$property_keys)) {
stop("The first key = value pair listed in ... must be uniquely constrained for the given node label.")
}**
"I'm confused!"
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Following one of your examples I tried to create a retweet with two labels, due the retweet is a copy of a tweet I want to have it in two different "categories".
https://nicolewhite.github.io/2014/05/30/demo-of-rneo4j-part1.html
I tested manually the use of multiple labels following:
https://neo4j.com/developer/kb/how-do-i-report-on-nodes-with-multiple-labels/
Then I tried to replicate the same functionality in R.
createNode has the possibility to create multiple labels:
createNode(theGraph,c("Tweet","ReTweet"), ...)
Is it valid getOrCreateNode(theGraph,c("Tweet","ReTweet"), ...)
and
getUniqueNode(graph, c("Tweet","ReTweet"), name = "Alice") ?
Maybe "I'm confused!" and I have to use two different statements for each label to create the nodes, but which would be the best option to retrieve unique nodes with multiple labels?
In the code I have something like:
I checked the code on getOrCreate and calls
createNode has the possibility to create multiple labels:
but the call failed in getOrCreateNode:
"I'm confused!"
The text was updated successfully, but these errors were encountered: