- Timestamp:
- Sep 29, 2010, 9:13:19 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/forMetisMQI/graph/Subgraph.java
r15 r18 260 260 return FilterUtils.createInducedSubgraph(nodes,g); 261 261 } 262 263 public int totalDegree() { 264 int result = 0; 265 Iterator<Node> nodeIterator = iterator(); 266 while(nodeIterator.hasNext()) { 267 int degree = g.degree(nodeIterator.next()); 268 result += degree; 269 } 270 return result; 271 } 262 272 }
Note: See TracChangeset
for help on using the changeset viewer.