Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
01-30-2019 11:41 PM
I should be grateful if you would guide me to the right resources (documentation and/or person) in order that I can solve a problem. I am very much a neo4j novice and have only represented my CV in neo4j and that was over a year ago.
I want to group one type of node according to how similarly they relate to another type of node. In my mind this is affinity analysis but others might call it cluster analysis.
To be more specific, I have a CRUD matrix where one axis is a set list of business processes and the other is a list of entity types (in the relational modelling/database sense) and the relationship between them is whether the Business Process has a Write, Read or Read/Write access to the Entity Type. I want to represent this in neo4j.
I think I have two questions:
The solving this problem will do two things:
The link I mentioned is this....
https://www.google.co.uk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=9&cad=rja&uact=8&ved=2ahUKEwih47Xf9Z...
04-04-2019 12:56 AM
The Jaccard algorithm is perfect for you, check out the docs and examples and let us know if that helped you:
https://neo4j.com/docs/graph-algorithms/current/algorithms/similarity-jaccard/
04-06-2019 04:18 AM
Thank you. I will follow this up and I am sure I will have fun and games trying to work out how to use it.
04-06-2019 05:49 AM
There are also some good blog posts, from @bratanic.tomaz and @mark.needham on the topic
04-09-2019 09:32 AM
Michael, Having run the query below, I can see that the algo has not been installed but 57 others have. How can I check if it has been removed/replaced? Many thanks.
"
CALL dbms.procedures() YIELD name, signature, description
WHERE name starts with "algo"
RETURN name, signature, description
"
04-11-2019 12:06 PM
Can you show the printscreen of what that returns? Also you call do call algo.list()
to achieve a similar thing
We haven't removed Jaccard Similarity in answer to your question!
04-17-2019 08:15 AM
Here is a screen-shot, as requested. I was expecting to see it before algo.spanningTree but I don't see it anywhere. I will be happy to learn if I have loaded the algorithms incorrectly such that some might be missing. I look forward to reading your conclusions.
04-23-2019 08:20 AM
and this one...
04-23-2019 04:14 PM
Which version of Neo4j and graph algorithms you are using?
04-24-2019 02:34 AM
Thank you for asking. It didn't occur to me that availability would be differentiated. I am using the Community edition. Desktop version 1.1.17. Browser 3.2.19.
04-24-2019 01:50 PM
Please check the Graph Algorithms version. Click on Manage and select Plugins tab and scroll down to see the version number.
Latest version is 3.5.4.
04-25-2019 06:34 AM
Thank you very much. I was on the wrong version, as you suspected. I can now see it. Now I can enjoy wrestling with how to use the algo and the data together.
Thank you for sparing the time on my issue.
04-25-2019 09:50 AM
Dear all,
I have had success thanks to the guidance provided above. I have a result of 48,000 records. In my naivity of neo4j, I was expecting the output to represented in graph form, as well as a table, where the similarity score is reflected in the relative proximity of the nodes. I was hoping then to see clusters of nodes.
Rummaging the Graph Algorithms part of the manual and the interweb, I can't infer whether I am missing something in the query or whether I need to invoke a thing to act on these results in order to get the graphical representation of the clusters I hope/expect to see.
Once again, any ideas and pointers will be gratefully received.
The query I ran was
"
Match (p1:Logical_Business_Process)-[:read|:write|:read_write]-(e1:Entity_Type)
WITH p1, collect(id(e1)) AS p1entity_type
MATCH (p2:Logical_Business_Process)-[:read|:write|:read_write]-(e2:Entity_Type) WHERE p1 <> p2
WITH p1, p1entity_type, p2, collect(id(e2)) AS p2entity_type
RETURN p1.Name AS from,
p2.Name AS to,
algo.similarity.jaccard(p1entity_type, p2entity_type) AS similarity
ORDER BY similarity DESC
"
All the sessions of the conference are now available online