You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: graph_gui.m
    path of file: ./repos/scGEAToolbox/+gui
    
    the code of the file until where you have to start completion: function graph_gui(A, xy)
%GRAPH_GUI  Draw and Edit Graphs of Vertices and Edges
% GRAPH_GUI(A,XY) Loads a graph into the GUI for editing
%
%   Controls:
%     Use the radio buttons to select an action
%       1. To DRAW a new VERTEX, select 'Draw' and 'Vertex'. Then click
%         inside the axes in the desired location.
%       2. To DELETE a VERTEX, select 'Delete' and 'Vertex'. 
    
function clickButtonUp(varargin)
                                if get(edge_radio, 'Value') && ~isempty(xy)
                                    cpt = get(gca, 'CurrentPoint');
                                    pt = cpt(1, 1:2);
                                    ax = axis;
                                    if pt(1) >= ax(1) && pt(1) <= ax(2) && pt(2) >= ax(3) && pt(2) <= ax(4)
                                        id = getNearestVertex(pt);
                                        if get(draw_radio, 'Value')
                                            A(eid, id) = 1;
                                        else
                                            A(eid, id) = 0;
                                        end