I am working on a CSV file that has a structure similar to:
aId, Amount, bId
int, float, int
Here aId, and bId have constraints on Node A, and B respectively. On loading the Nodes, and relationships initially,
LOAD CSV with headers FROM 'file:///abc.csv' as row
MERGE (a: A {aid: toInteger(row.aID)})
MERGE (b: B {bid: toInteger(row.bID)})
CREATE (a)-[:HAS_SENT {amt: toFloat(row.Amount)}]->(b)
There are 1490 labels and 1299 relationships.
Now I wish to use different Graph Data Science Libraries to perform various computations on the file. To project a graph for this, I estimated the same using CALL gds.graph.create.estimate(['A'],['HAS_SENT'])
that returned 851 Nodes, and 1299 relationships.
However, when I tried to create the graph, CALL gds.graph.create('mySampleGraph',['A'],['HAS_SENT'])
, it returned the same number of nodes, but with 0 relationship.
What did I miss out, and how is it possible for me to get mappings correct?