@Override
    public void execute(GraphModel graphModel) {
        Graph graph = graphModel.getGraphVisible();
        execute(graph);
    }
@Test
    public void testCompleteGraphDegree() {
        GraphModel graphModel = GraphGenerator.generateCompleteUndirectedGraph(5);
        Graph graph = graphModel.getGraph();
        Node n = graph.getNode("2");
        WeightedDegree d = new WeightedDegree();
        d.execute(graph);
        assertEquals(n.getAttribute(WeightedDegree.WDEGREE), 4.0);
    }