Skip to content

Commit 2aa04d5

Browse files
committed
Changed values for graph drawing.
1 parent 285f532 commit 2aa04d5

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

index_example.html

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,14 @@
1818
var index = parseInt(location.search.split("?")[1]);
1919
if(isNaN(index)) {
2020
index = 1;
21-
}
21+
}
22+
/* Change these values to draw more nodes (numNodes) */
2223
switch(index) {
2324
case 0:
24-
drawing = new Drawing.SimpleGraph({layout: '2d', selection: true, numNodes: 50, showStats: true, showInfo: true});
25+
drawing = new Drawing.SimpleGraph({layout: '2d', selection: false, numNodes: 50, showStats: true, showInfo: true});
2526
break;
2627
case 1:
27-
drawing = new Drawing.SimpleGraph({layout: '3d', selection: true, numNodes: 50, showStats: true, showInfo: true});
28+
drawing = new Drawing.SimpleGraph({layout: '3d', selection: true, numNodes: 50, graphLayout:{attraction: 5, repulsion: 0.5}, showStats: true, showInfo: true});
2829
break;
2930
case 2:
3031
drawing = new Drawing.SphereGraph({numNodes: 50, showStats: true, showInfo: true});

0 commit comments

Comments
 (0)