cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

triangleCount Error

andy_hegedus
Graph Fellow

Hi,
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"

CALL gds.alpha.triangleCount.stream('fred')
YIELD nodeId, triangleCount
RETURN gds.util.asNode(nodeId).noun AS noun, triangleCount
ORDER BY triangleCount DESC

Also it is not finding localClusteringCoefficient.

Andy.

12 REPLIES 12

Hello @andy.hegedus

Did you try CALL gds.triangleCount.stream()?

Regards,
Cobra

Yup,
that is where I started:

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

Andy

Are you sure GDS is installed?

I believe so:
I can run this without issue.

CALL gds.labelPropagation.stream('fred')
YIELD nodeId, communityId AS Community
RETURN gds.util.asNode(nodeId).noun AS noun, Community
ORDER BY Community, noun

Andy

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

Did you try to uninstall / reinstall the plugin?

Version 3.5.14 Enterprise
Status RUNNING

Nodes 270

Labels 1

Relationships 3415

Relationship types 1
APOC

Installed

3.5.0.9
Graph Data Science Library
Installed

1.1.1

andy_hegedus
Graph Fellow

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.

gds.alpha.triangleCount.stream" "gds.alpha.triangleCount.stream(graphName :: 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?

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

andy_hegedus
Graph Fellow

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.
Andy

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

andy_hegedus
Graph Fellow

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