public double computeEdgesWeight(Community c, List<Node> nodeList){		
		double totalWeight =0;
		if(c.getChild1() == null){
			DenseVector nodesC = c.getVertexIndexes();			
			for(VectorEntry ve : nodesC){
				int id = (int)ve.get();												
				Set<Edge<Node>> edges = structure.getEdges(nodeList.get(id));
				//System.out.println("un noeud");
				for(Edge<?> e:edges){
					if(e.getSource().equals(nodeList.get(id)))
						//System.out.println(e.getSource().getName()+" to "+e.getTarget().getName());
						totalWeight += e.getWeight(); 
				}
			}
		}else{
			computeEdgesWeight(c.getChild1(),nodeList);
			computeEdgesWeight(c.getChild2(),nodeList);
		}
		return totalWeight;
	}