Ignore:
Timestamp:
Sep 17, 2010, 6:04:18 PM (14 years ago)
Author:
gnappo
Message:

Individuazione del miglioramento del taglio: tentativi.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/weka/clusterers/forMetisMQI/graph/Bisection.java

    r12 r15  
    139139       
    140140        /**
    141          * Returns the smaller subgraph of this bisection.
     141         * Returns the smaller not empty subgraph of this bisection, null otherwise.
    142142         * @return
    143143         */
    144         public Subgraph getSmallerSubgraph() {
     144        public Subgraph getSmallerNotEmptySubgraph() {
     145                if(a.getVertexCount() > 0 && b.getVertexCount() == 0)
     146                        return a;
     147                if(b.getVertexCount() > 0 && a.getVertexCount() == 0)
     148                        return b;
    145149                if(a.getVertexCount() < b.getVertexCount())
    146150                        return a;
Note: See TracChangeset for help on using the changeset viewer.