MixedGraph graph = Lookup.getDefault().lookup(GraphController.class).getModel().getMixedGraph();
if (deleteDirected) {
gec.deleteEdges(graph.getDirectedEdges().toArray());
}
if (deleteUndirected) {
gec.deleteEdges(graph.getUndirectedEdges().toArray());
}
}
public String getName() {
return NbBundle.getMessage(ClearEdges.class, "ClearEdges.name");