Changeset 5012:2a2b82d7860b in orange


Ignore:
Timestamp:
07/29/08 15:02:56 (6 years ago)
Author:
miha <miha.stajdohar@…>
Branch:
default
Convert:
56da326bd5279bd64e02f85c1ff1f923a702d2a0
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • source/orangeom/network.cpp

    r5011 r5012  
    401401                nConnected++; 
    402402        } 
     403         
     404        vector<int> neighbours; 
     405        network->getNeighbours(0, neighbours); 
     406        if (neighbours.size() > 0) 
     407            nConnected++; 
    403408    } 
    404409    else { 
     
    417422            if (connected) 
    418423                nConnected++; 
     424             
     425            vector<int> neighbours; 
     426            network->getNeighbours(matrix->dim - 1, neighbours); 
     427            if (neighbours.size() > 0) 
     428                nConnected++; 
    419429        } 
    420430    } 
Note: See TracChangeset for help on using the changeset viewer.