Changeset 17 for src/main/java/weka/clusterers/forMetisMQI/graph
- Timestamp:
- Sep 23, 2010, 10:32:44 AM (14 years ago)
- Location:
- src/main/java/weka/clusterers/forMetisMQI/graph
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/weka/clusterers/forMetisMQI/graph/Node.java
r11 r17 34 34 @Override 35 35 public String toString() { 36 return "N" +id; //+ " Cewgt: " + cewgt;36 return id; //+ " Cewgt: " + cewgt; 37 37 } 38 38 -
src/main/java/weka/clusterers/forMetisMQI/graph/UndirectedGraph.java
r14 r17 74 74 while (dataIterator.hasNext()) { 75 75 Instance edge = dataIterator.next(); 76 Node node1 = new Node( Integer.toString(((int) Math.round(edge.value(from)))));77 Node node2 = new Node( Integer.toString(((int) Math.round(edge.value(to)))));76 Node node1 = new Node(edge.stringValue(from)); 77 Node node2 = new Node(edge.stringValue(to)); 78 78 addVertex(node1); 79 79 addVertex(node2);
Note: See TracChangeset
for help on using the changeset viewer.