Hello,
@michael.hunger @lyonwj @andrew_bowman
To get a cluster of nodes with same color, we need to run this query -
CALL algo.labelPropagation('cabinet_2','Parameter','privileges_2',{write:true,
partitionProperty:'community', weightProperty:'count'})
I ran the above query. With it i also ran this -
CALL algo.labelPropagation(null,null,'OUTGOING',{write:true, partitionProperty:'partition',
weightProperty:'count'})
Now , despite running this query , there is no difference in the nodes .
Please check -
or
Also,is my configuration in Neovis.js correct ?
visjs: {
//code
},
edges: {
hoverWidth: 0,
selectionWidth: 0,
smooth: {
type: 'continuous',
roundness: 0.15
},
font: {
size: 9,
strokeWidth: 0,
align: 'top'
},
color: {
inherit: false
},
arrows: {
to: {
enabled: true,
type: 'arrow',
scaleFactor: 0.5
}
}
}
}
config variable in Neovis.js is -
var cypherQuery = "MATCH (n)-[r]->(m) RETURN n,r,m;";
var config = {
container_id: "viz",
server_url: "bolt://localhost:11001/",
server_user: "neo4j",
server_password: "Virtuallib1",
labels: {
//"Character": "name",
"Banking": {
"caption": "name",
"size": "pagerank",
"community": "community",
"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
},
"ngoconnectionserviceimplhttpsoap11endpoint": {
"thickness": "weight",
"caption": true,
"community": "partition",
"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
},
"ngoconnectionserviceimplhttpsoap12endpoint": {
"thickness": "weight",
"caption": true,
"community": "partition",
"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
},
"connparams_2": {
"thickness": "weight",
"caption": true,
"community": "partition",
"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
},
"connparams": {
"thickness": "weight",
"caption": true,
"community": "partition",
"sizeCypher": "MATCH (n) WHERE id(n) = {id} MATCH (n)-[r]-() RETURN sum(r.weight) AS c"
},
"System": {
"thickness": "weight",
"caption": true,
"community": "partition"
},
},
relationships: {
"Parameter": {
"thickness": "weight",
"caption": true,
"community": "partition",
"color":'red'
},
"Method": {
"thickness": "weight",
"caption": true,
"community": "Blue",
},
"System": {
"thickness": "weight",
"caption": true,
"community": "partition",
},
},
cluster_labels: {
"Parameter": "partition"
},
initial_cypher:cypherQuery ,
arrows: true,
hierarchical_layout:true,
hierarchical_sort_method:"directed",
};
Please help . I want uniform color as shown in here -