cluster analysis - visjs.org library trouble -
I just reached my new job and my boss told me that I work with Graffas for the visjs.org library To do. / P>
I have to work with "19_scale_free_graph_clustering" example I groups in which> = 10 nodes have to be changed. This library is very rare, there are so many announcements in the code, yet I can not understand it. I can only change the color of all the nodes but this is not a problem, I have to change the groups having = 10 nodes in my cluster. Can anyone understand me? Please help me Yet I can not do it in 4 days, can anyone help me?
Here's a snippet of code, I do not know what I'm doing in the right part. This library has 30,000 lines of code with so many announcements, it is a small part of a network where I am working.
(nodeId in this.nodes) {if (this.nodes.hasOwnProperty (nodeId)) {var node = this nodes [nodeId]; If (node. Cluster size & gt; 1) {//node.label = "[" .concat (string (node cluster size), "]"); More than this number your number node. Label = "" .concat (string (node cluster size), ""); If (node. Cluster size = 10) {this.defaultOptions.nodes.color.background = "#fff"; // color is changing in all colors here}}}}
Comments
Post a Comment