Ignore:
Timestamp:
Sep 11, 2010, 4:12:16 PM (14 years ago)
Author:
gnappo
Message:

Aggiunta la libreria Jung per lavorare con i grafi. Primi esperimenti. A breve riorganizzazione completa del codice per usufruire della libreria.

File:
1 edited

Legend:

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

    r7 r8  
    99import java.util.TreeSet;
    1010import java.util.Map.Entry;
    11 
    12 import weka.clusterers.forMetisMQI.Graph.NodeInfo;
    1311
    1412public class Subgraph {
     
    134132        }
    135133       
     134        public int getWeight(int u, int v) {
     135                int ret = -1;
     136                if(isEdge(u,v))
     137                        ret = g.getWeight(u, v);
     138                return ret;
     139        }
     140       
    136141        public Iterator<Integer> iterator() {
    137142                return listOfNodes.iterator();
Note: See TracChangeset for help on using the changeset viewer.