Commit 8e154617 authored by PkSM3's avatar PkSM3

bugfix cluster_index parsing

parent 8a2f12c9
......@@ -13,6 +13,10 @@
"RiskV2PageRank.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
},
"RiskV2PageRank1000.gexf": {
"social": { "table":"ISIAUTHOR" , "textCol":"data","forkeyCol":"id"},
"semantic": { "table":"ISItermsAxa_2015" , "textCol":"data","forkeyCol":"id"}
}
}
},
......
......@@ -295,9 +295,12 @@ function dictfyGexf( gexf , categories ){
var attention = false
if( TW.Clusters.length == 0 ) {
if( nodes[1].attributes["cluster_index"] ) {
for( var i in nodes ) {
if( nodes[i].attributes["cluster_index"] ) {
attention = true;
}
break
}
}
TW.Clusters = {}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment