Bharat Ram Ammu
Bharat Ram Ammu

Reputation: 184

Apoc.algo.betweenness procedure not found: call apoc.help('algo') running

apoc.algo. betweenness procedure not found for me, ran following query similar to shown here on github :

MATCH (o:Originator),(b:Beneficiary)
WITH collect(o) AS origs
CALL apoc.algo.betweenness(['LINKED_TO_ORIGINATOR'], origs, 'INCOMING') YIELD node, score
//Measuring shortest path between customers connected to each originator
SET node.betweenness = score
RETURN node AS originator,score ORDER BY score DESC LIMIT 25

However, I get an error that the procedure is not found: enter image description here I ensured my conf file is well configured using stack overflow answers 1 and 2

Proof that call apoc.help('algo') is working: enter image description here

Is the method apoc.algo.betweenness procedure removed from APOC library?

Alternately, I tried using apoc.betweenness but not sure how to set the relationship type as 'Incoming' and the node name (which of course is another question if this doesn't work). Thanks in advance!

Upvotes: 1

Views: 555

Answers (1)

cybersam
cybersam

Reputation: 67009

The 3.4 branch of the APOC source code contains the Centrality class that implements the apoc.algo.betweenness procedure (annotated as @deprecated). But that class no longer exists in the 3.5 branch, so apoc.algo.betweenness is no longer supported in 3.5+.

However, the 3.5 Graph Algorithms plugin contains a number of betweenness centrality algorithms. The names of those procedure start with "algo.betweenness". The linked documentation shows how to use them.

Upvotes: 3

Related Questions