@Override
    public void mouseReleased(MouseEvent mouse) {
        Tool tool = controls.getTool();
        if (selectedMessage != null) {
            selectedMessage.selected = 0;
            selectedMessage = null;
            noClick = true;
        }
        if (tool.compatible(ToolType.create) && tool.compatible(ToolTarget.edge)
                && graph.player.state == RunState.stopped) {
            graph.createEdge(begin, graph.getVertex(mouseGetX(mouse), mouseGetY(mouse)));
        }
        begin = null;
        xlast = 0;
        ylast = 0;
        GUI.gRepaint();
    }