~mathieu-jacomy/gephi/forceatlas2

« back to all changes in this revision

Viewing changes to DataLaboratoryAPI/src/org/gephi/datalab/impl/AttributeColumnsControllerImpl.java

  • Committer: Eduardo Ramos
  • Date: 2011-05-24 18:59:22 UTC
  • Revision ID: eduramiba@gmail.com-20110524185922-zyqs7ijeknbzth4w
Fix bug 785635

Show diffs side-by-side

added added

removed removed

Lines of Context:
637
637
                    for (AttributeColumn column : columnsList) {
638
638
                        setAttributeValue(reader.get(column.getTitle()), edgeAttributes, column);
639
639
                    }
 
640
                }else{
 
641
                    //Do not ignore repeated edge, instead increase edge weight
 
642
                    edge=graph.getEdge(source, target);
 
643
                    if(edge!=null){
 
644
                        edge.getEdgeData().getAttributes().setValue(PropertiesColumn.EDGE_WEIGHT.getIndex(), edge.getWeight()+1);
 
645
                    }
640
646
                }
641
647
            }
642
648
        } catch (FileNotFoundException ex) {