Skip to content

Commit 832941c

Browse files
author
milu
committed
graph file load okkkk
1 parent a36152b commit 832941c

2 files changed

Lines changed: 42 additions & 0 deletions

File tree

scripts/graph_loader.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/**
2+
* Created by milu on 11/19/15.
3+
*/
4+
5+
node_list = -1;
6+
edge_list = -1;
7+
8+
function load_graph(edge_list_url,node_list_url){
9+
10+
graph = 0;
11+
12+
13+
return graph;
14+
}
15+
16+
function getNodeList(url){
17+
18+
$.get(url, function(data) {
19+
console.log(data);
20+
21+
getEdgeList();
22+
23+
}, 'text');
24+
25+
}
26+
27+
function load_node(nodes){
28+
29+
30+
}
31+
32+
function getEdgeList(url){
33+
34+
$.get(url, function(data) {
35+
console.log(data);
36+
37+
}, 'text');
38+
39+
}

scripts/mainScript.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22
* Created by milu on 11/18/15.
33
*/
44

5+
edge_list_url = 'http://fahimcsebuet.github.io/thesis_javascript/graph/edge_list.txt';
6+
node_list_url = 'http://fahimcsebuet.github.io/thesis_javascript/graph/node_list.txt';
7+
58
$( document ).ready(function() {
69
console.log( "ready!" );
710
$('.selectpicker').selectpicker();

0 commit comments

Comments
 (0)