Neo4j There is no procedure with the name `algo.pageRank` registered for this database instance

:param label => ('Person');
:param relationshipType => ('HAS_EMAILED');
:param limit => ( 100);
:param config => ({concurrency: 8, direction: 'Outgoing', weightProperty: null, defaultValue: 1, dampingFactor: 0.85, iterations: 25, writeProperty: 'pagerank'});

//then we calculate pagerank with one simple command
CALL algo.pageRank($label, $relationshipType, $config);

*** There is an error that happened here:

Neo.ClientError.Procedure.ProcedureNotFound: There is no procedure with the name algo.pageRank registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.

I use the "Graph Data Science Library" plugin in Neo4j

I believe the command should be: CALL gds.pagerank.stream(...)
Check the reference documentation for other variants.

1 Like

What esactly the commond " CALL gds.pagerank.stream(...)" is ?

I try many ways according with the document, but all don't work~ THX!

This answears is ok

:param label => ('Person'); :param relationshipType => ('HAS_EMAILED'); :param limit => ( 100); :param config => ({concurrency: 8, direction: 'Outgoing', weightProperty: null, defaultValue: 1, dampingFactor: 0.85, iterations: 25, writeProperty: 'pagerank'});

CALL gds.graph.create(
    'myGraph332',
    'Person',    { HAS_EMAILED:{orientation:'UNDIRECTED'}    })

Then

CALL gds.pageRank.stream('myGraph332')

YIELD nodeId, score

RETURN gds.util.asNode(nodeId).alias AS alias, score

ORDER BY score DESC, alias ASC

There is also a section on anonymous graphs if your interested :slight_smile:

1 Like

Where did you find this example?

It's actually from the Graph Algorithms Library, which is the predecessor of the GDS Library that @bjorge.eikenes provided examples for.