Hi,
I am using the collapsePath functionality to create specialised subgraphs.
There is a case when many paths map to a single mutateRelationshipType.
For example I would like to do something like:
CALL gds.alpha.collapsePath.mutate(
'jscgocwyqc',
{
relationshipTypes: [['repressor', 'repressed', 'activator', 'activated', 'template', 'product'],['repressor', 'repressed', 'activator']],
mutateRelationshipType: 'Repression',
allowSelfLoops: false
,nodeLabels: ['Protein']
}
) YIELD relationshipsWritten
I.e. both of these relationshipType paths map to the same relationship,
If you run the collapsePath two times with the two lists you get the error:
Failed to invoke procedure gds.alpha.collapsePath.mutate
: Caused by: java.lang.IllegalArgumentExcep
tion: Relationship type Repression
already exists in the in-memory graph.
Any halp would be much appreciated.