Changeset 8702:b182ed35ef7e in orange


Ignore:
Timestamp:
08/14/11 14:35:33 (3 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
c4cb3363fd46f1910ffb324f6b2b32230cab9e9b
Message:

Fixed a bug when reading edges file.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orange/OrangeWidgets/Unsupervised/OWNxFile.py

    r8649 r8702  
    313313    def readEdgesFile(self, fn): 
    314314        table = ExampleTable(fn) 
    315         if self.graph.is_directed(): 
    316             nEdges = len(self.graph.getEdges()) 
    317         else: 
    318             nEdges = len(self.graph.getEdges()) / 2 
     315        nEdges = len(self.graph.edges()) 
    319316             
    320317        if len(table) != nEdges: 
Note: See TracChangeset for help on using the changeset viewer.