cancel
Showing results forΒ 
Search instead forΒ 
Did you mean:Β 

Small issue with "Harmonic Centrality algorithm sample"

Illia_Komendant
Node Clone

Hey,

I cannot get the same result as described in "Harmonic Centrality algorithm sample".

Copy/Paste the sample and run in Neo4j Desktop

Run algorithm

In the docs there are some calculations that show numbers (not zeros).

May be I misunderstand the results from algo πŸ˜ƒ

You can find the link to the docs above
Neo4j Desktop version is 1.1.9
Neo4j DB version is 3.4.5 Enterprise
OS Win8.1

1 REPLY 1

mark_needham
Neo4j
Neo4j

Hi,

I just tried running this on a blank 3.4.7 database and it seems ok for me:

╒════════╀════════════╕
β”‚"nodeId"β”‚"centrality"β”‚
β•žβ•β•β•β•β•β•β•β•β•ͺ════════════║
β”‚1       β”‚0.5         β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚2       β”‚0.375       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚0       β”‚0.375       β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚4       β”‚0.25        β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚3       β”‚0.25        β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”΄β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

I do see that actually the relationship type there is wrong - it should be LINK rather than LINKS but in that case the algorithm is just looking at any relationships between nodes instead.

Nodes 2022
Nodes
NODES 2022, Neo4j Online Education Summit

OnΒ November 16 and 17 for 24 hours across all timezones, you’ll learn about best practices for beginners and experts alike.