- Timestamp:
- Sep 30, 2010, 5:33:45 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/forMetisMQI/graph/Bisection.java
r18 r20 139 139 } 140 140 141 public Subgraph getLargerSubgraph() { 142 if(a.getVertexCount() < b.getVertexCount()) 143 return b; 144 else 145 return a; 146 } 147 141 148 /** 142 * Returns the smaller not emptysubgraph of this bisection, null otherwise.149 * Returns the smaller subgraph of this bisection, null otherwise. 143 150 * @return 144 151 */ 145 public Subgraph getSmallerNotEmptySubgraph() { 146 if(a.getVertexCount() > 0 && b.getVertexCount() == 0) 147 return a; 148 if(b.getVertexCount() > 0 && a.getVertexCount() == 0) 149 return b; 152 public Subgraph getSmallerSubgraph() { 150 153 if(a.getVertexCount() < b.getVertexCount()) 151 154 return a;
Note: See TracChangeset
for help on using the changeset viewer.