Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
11-29-2020 07:20 AM
: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
11-29-2020 10:17 AM
I believe the command should be: CALL gds.pagerank.stream(...)
Check the reference documentation for other variants.
11-29-2020 07:20 PM
What esactly the commond " CALL gds.pagerank.stream(...)" is ?
I try many ways according with the document, but all don't work~ THX!
11-29-2020 08:31 PM
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
11-29-2020 11:50 PM
There is also a section on anonymous graphs if your interested
11-30-2020 02:54 AM
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.
All the sessions of the conference are now available online