triangleCount Error

Working my way through gds library (version 1.1.1 is installed)
First: the documentation does not list the algorithm as alpha.

It is giving me an error about triangle Count being an unknown output. The documentation does show it as result.

Unknown procedure output: triangleCount (line 2, column 15 (offset: 58))
"YIELD nodeId, triangleCount"

YIELD nodeId, triangleCount
RETURN gds.util.asNode(nodeId).noun AS noun, triangleCount
ORDER BY triangleCount DESC

Also it is not finding localClusteringCoefficient.


Hello @andy.hegedus :slight_smile:

Did you try CALL


that is where I started:

"There is no procedure with the name registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed."


Are you sure GDS is installed?

I believe so:
I can run this without issue.

YIELD nodeId, communityId AS Community
RETURN gds.util.asNode(nodeId).noun AS noun, Community
ORDER BY Community, noun


That's weird, which version of Neo4j database are you using?

Did you try to uninstall / reinstall the plugin?

I have called dbms.procecdures() and it has this:
It shows it as an alpha level procedure though the online documentation does not. Also it shows the result value as triangles and triangleCount .

I am just following along with the documentation." " :: ANY?, configuration = {} :: MAP?) :: (nodeId :: INTEGER?, triangles :: INTEGER?, coefficient :: FLOAT?)" "Triangle counting is a community detection graph algorithm that is used to determine the number of triangles passing through each node in the graph." ["reader", "editor", "publisher", "architect", "admin"] "READ"

Which version of Neo4j (>4.0 or <4.0) are you using and can you tell me which plugins are installed on the database?

Version 3.5.14 Enterprise

Nodes 270

Labels 1

Relationships 3415

Relationship types 1

Graph Data Science Library


Can you try to update the database to the 4.0.6 version and to reinstall the plugin? :slight_smile:

I think I figured out what happened. The default for the documentation is version 1.2 and since I am running Neo4J 3.5.14 version 1.1.1 got installed. If I change the version on the documentation page to reflect that then things make sense. I would recommend that versioning on documentation be a bit more visible.

Yeah It happened to me :smile:, did you solved your issue? :slight_smile:

I think I am ok at the moment.
Thank you for your assistance.

1 Like