graph - Link Nodes Together -


i have graph based database neo4j or giraph existing 50 vertices , edges linking them together.

now want introduce new vertex - x graph. vertex needs run similarity algo against of other nodes. node/nodes similarity score highest form new edges of graph.

my question - 1 - possible in giraph/neo4j? 2 - reference link can provide implementation of this?

thanks, manish

yes possible, e.g. imagine nodes have numeric value property:

match (n:label) abs(n.value-{new_value}) delta,n order delta desc limit 1 create (m:label {value:{new_value})-[:linked]->(n) 

Comments

Popular posts from this blog

php - failed to open stream: HTTP request failed! HTTP/1.0 400 Bad Request -

java - How to filter a backspace keyboard input -

java - Show Soft Keyboard when EditText Appears -