Changeset 4649:2484d10dc615 in orange


Ignore:
Timestamp:
05/14/08 12:50:19 (6 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
c005327c49573fa95d84c5a4040db6fd7daae071
Message:

throw pyerror if number of vertices is less than 2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeom/networkoptimization.cpp

    r4644 r4649  
    15481548        } 
    15491549         
     1550        if (nVertices <= 1) { 
     1551            file.close(); 
     1552            PYERROR(PyExc_SystemError, "invalid file format; invalid number of vertices (less than 1)", NULL); 
     1553        } 
     1554 
    15501555        graph = new TNetwork(nVertices, 0, directed == 1); 
    15511556        wgraph = graph; 
Note: See TracChangeset for help on using the changeset viewer.