I want to design the graph in memory for training the link prediction algorithm, but undirected relationships are required. when I design the graph I use several nodes and several relationships and I try to set them Undirected .
CALL gds.graph.project('myGraph',
['YCHTC','YCHTCp'],
['DETERMINE', 'SIMILAR']:
{ orientation: 'UNDIRECTED' })
YIELD
graphName AS graph, nodeProjection, nodeCount AS nodes, relationshipCount AS rels
But there is an error:
Invalid input '{': expected an identifier (line 4, column 3 (offset: 84))
" { orientation: 'UNDIRECTED' })".
I tried several options, but they are all wrong.
CALL gds.graph.project('myGraph',
['YCHTC','YCHTCp'],
[DETERMINE:{ orientation: 'UNDIRECTED'}, SIMILAR: { orientation: 'UNDIRECTED' }]
YIELD
graphName AS graph, nodeProjection, nodeCount AS nodes, relationshipCount AS rels
CALL gds.graph.project('myGraph',
'*',
{ALL:{orientation:'UNDIRECTED',
type: ' * ' }})
This works, but does not find the properties.