Skip to content
This repository has been archived by the owner on Apr 22, 2020. It is now read-only.

Betweenness Centrality procedure returned different results for same data using different modes #881

Open
Joshua-Yu opened this issue Apr 10, 2019 · 0 comments

Comments

@Joshua-Yu
Copy link

The results of the below 2 queries should be the same as the only difference is the type, i.e. heavy and cypher:

  1. CALL algo.betweenness.stream(
    '城市',
    '铁路连接|公路连接',
    {direction:'both'}
    )
    YIELD nodeId, centrality
    RETURN algo.asNode(nodeId).name AS node, centrality
    ORDER BY centrality DESC

  2. CALL algo.betweenness.stream(
    'MATCH (n:城市) RETURN id(n) AS id',
    'MATCH (n:城市) -[:铁路连接|公路连接]-> (n1) RETURN id(n) AS source, id(n1) AS target',
    {graph:'cypher',direction:'both'}
    )
    YIELD nodeId, centrality
    RETURN algo.asNode(nodeId).name AS node, centrality
    ORDER BY centrality DESC

Both have returned 151 records but with quite different ordering and scores.

What did I miss?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant