Skip to content

Commit

Permalink
if edge weight is set, set size attribute to this value to make setti…
Browse files Browse the repository at this point in the history
…ng minEdgeSize and maxEdgeSize effective
  • Loading branch information
yaph committed Jan 8, 2013
1 parent 28e210b commit 808b980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugins/sigma.parseGexf.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ sigma.publicPrototype.parseGexf = function(gexfPath) {
var weight = edgeNode.getAttribute('weight');
if(weight!=undefined){
edge['weight'] = weight;
edge['size'] = weight;
}

var attvalueNodes = edgeNode.getElementsByTagName('attvalue');
Expand Down

0 comments on commit 808b980

Please sign in to comment.