Ignore:
Timestamp:
Sep 23, 2010, 10:32:44 AM (14 years ago)
Author:
gnappo
Message:

Modificata strategia individuazione cluster: quelli trovati vengono rimossi.

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  
    3434        @Override
    3535        public String toString() {
    36                 return "N" + id; //+ " Cewgt: " + cewgt;
     36                return id; //+ " Cewgt: " + cewgt;
    3737        }
    3838
  • src/main/java/weka/clusterers/forMetisMQI/graph/UndirectedGraph.java

    r14 r17  
    7474                while (dataIterator.hasNext()) {
    7575                        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));
    7878                        addVertex(node1);
    7979                        addVertex(node2);
Note: See TracChangeset for help on using the changeset viewer.