Vis.js chart does not stabilize even after

I have a network of 1000 nodes. I installed stabilize:trueand zoomExtentOnStabilize: true. Nodes are added from JSONusing the function vis.network.gephiParser.parseGephi(). When I tried to build this graph, it never stabilizes even after several hours of inactivity. But then fewer nodes stabilize in a reasonable amount of time. What I miss here. Is there a way to stabilize large charts. I even tried to set the number of iterations to stabilize to 1000 and even higher. Thank you in advance.

PS: Node coordinates not available JSON. The graph is redrawn based on user input.

EDIT 1: Received JSON data is available at http://pastebin.com/raw.php?i=Mzy4ncxw . I could not make a reproducible example in jsbin due to an error CORS.
JavaScript Code:

message = JSON.parse(json_data); // json_data is sent from R server.
var nodes = new vis.DataSet();
var edges = new vis.DataSet();
var container = document.getElementById("div_graph");
var data = {
  nodes: nodes,
  edges: edges
};
var options = {
  tooltip: {
    delay: 50,
    fontColor: "black",
    fontSize: 14, 
    fontFace: "verdana",
    color: {
      border: "#666",
      background: "#FFFFC6"
      } 
  },
  clustering: {
    enabled: clusteringOn,
    clusterEdgeThreshold: 50  
  },
  hideEdgesOnDrag: true,
  stabilize: true,
  zoomExtentOnStabilize: true,
  navigation: true,
  keyboard: true,
  edges: {
    inheritColor: "to"
  }
};
var network = new vis.Network(container, data, options);
nodes.clear();
edges.clear();
var parsed = vis.network.gephiParser.parseGephi(message);
nodes.add(parsed.nodes);
edges.add(parsed.edges);
network.redraw();
+4
source share
1 answer

I am a visjs network module developer. we used it to stabilize much larger sets than 1000 nodes. I can’t say what is going wrong here, based on the information you provide. I would like to invite you to a question about our github page. We are trying to collect all the questions there. Can you share the code used or your data (shortcuts scrambled for anonymity).

, 1000 node 3000 . , . 15000 3000 node 25000 , , .

, , ( )?

~ Alex

EDIT:

, .

-, , , , . gephiParser . . -: http://visjs.org/docs/network.html#Gephi_import

-, . node, . ( , ). v4 timestep, , . configurePhysics , . .

, 3000 , . . 4.0 , .

2:

JSBin, ( )

http://jsbin.com/tiwijixoha/5/edit?html,output

, , , , , , , setData(), .

jsbin , . , .

+8

All Articles