cancel
Showing results for 
Search instead for 
Did you mean: 

How to paste the param and graph algorithm working in neo4j browser>

apremgeorge
Node Clone

Hi,
If I paste the param from graph

:param label => null;
:param relationshipType => null;
:param limit => 50;
:param config => {
  concurrency: 8,
  direction: 'Both',
  weightProperty: null,
  defaultValue: 1,
  writeProperty: 'louvain',
  includeIntermediateCommunities: false,
  intermediateCommunitiesWriteProperty: 'louvainIntermediate',
  communityProperty: ''
};

I am getting below error in browser

Invalid input ':': expected whitespace, comment, Statement or end of input (line 2, column 1 (offset: 13))
 ":param relationshipType => null;" ^

May I know my mistake please, Thanks?

1 ACCEPTED SOLUTION

You can run each of those separately, or you could use :params to set them all at once, but you'll need all of them in the parameter map:

:params {label:null, relationshipType:null, limit:50, config: {concurrency: 8, direction: 'Both',weightProperty: null,defaultValue: 1,writeProperty: 'louvain',includeIntermediateCommunities: false,intermediateCommunitiesWriteProperty: 'louvainIntermediate',communityProperty: ''}}

View solution in original post

1 REPLY 1

You can run each of those separately, or you could use :params to set them all at once, but you'll need all of them in the parameter map:

:params {label:null, relationshipType:null, limit:50, config: {concurrency: 8, direction: 'Both',weightProperty: null,defaultValue: 1,writeProperty: 'louvain',includeIntermediateCommunities: false,intermediateCommunitiesWriteProperty: 'louvainIntermediate',communityProperty: ''}}