Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
04-10-2019 11:24 PM
The entire database contains several graphs, and the graph and graph may be linked by a node. How to find the connection node between graph A and graph B? Thank you for your advice!
04-11-2019 12:16 PM
You need to use a Between-ness Centrality Algorithm, which you can find in your Neo4j Desktop installations under Plugins. There you click Install under Algorithms. Here's some documentation on the Between-ness Algorithm there.
https://neo4j.com/docs/graph-algorithms/current/algorithms/betweenness-centrality/
04-14-2019 06:22 AM
Thank you very much for your help!
04-11-2019 01:49 PM
We'll need more information to help.
How do you identify and differentiate the separate graphs? Are they all labeled according to the graph they belong to?
Do the connector nodes have a specific label that marks them as such? Or do they have both labels of the two graphs they belong to? Or is there any other way to identify them? Will there only be a single node that connects two graphs, or multiple nodes?
04-11-2019 05:46 PM
Thank you very much for your help! Let me give you a similar example: In a social network, there is a relationship of friends between each other, which forms a social circle. There are two social circles A and B. A and B are connected through a node x, and x can be regarded as a key node. My goal is to identify each subgraph in a large social network and to find all the key nodes.
04-11-2019 05:48 PM
That does sound like a perfect use for the betweenness centrality algorithm neo4joe mentioned above, check that one out.
04-11-2019 05:59 PM
I am using apoc to identify and differentiate the separate graphs.They are all labeled according to the graph they belong to.the connector nodes have not a specific label that marks them as such.they have not both labels of the two graphs they belong to.There may be multiple nodes connecting two graphics.Thank you very much!
04-11-2019 09:04 PM
That sounds like a good start. Do you know which graphs are adjacent? That is, do you already have the labels corresponding with the two graphs already, or do you only know the label of a single graph and you want to get all connecting nodes to all adjacent graphs?
Or is this meant to be a graph-wide query to find all nodes that connect two or more graphs?
Some example data (labels and relationship types and such) would help.
04-14-2019 06:21 AM
I am sorry.My english is pool.Thank you very much for your help!
04-11-2019 10:24 PM
Your suggestion is very good, it is indeed a few places that I have not considered. Think about it carefully, I don't know which graphs are adjacent. Let me give you an example: In social networks, everyone's label is a person and the relationship type is is-friend. In this way, some circles and chains of friends in neo4j. I want to find any circle or chain of friends that I am interested in. I am more interested in finding all the key people who connect two or more chains. This is the two parts of a problem. Do you have any good suggestions?Thank you very much!
All the sessions of the conference are now available online