public void addnode(Point pnt){
        Circle c = new Circle(pnt);
        if (deleteNode(pnt)==-1){
            boolean result = false;
            for (int i=0;i<count && result;i++)
                if (pnts[i]==null){
                    pnts[i] = c;
                    result =true;
                }
            if (!result)
                pnts[count] = c;
            count ++;
        }
        for (Circle pnt1 : pnts) {
            if (pnt1 != null) {
                pnt1.print(g);
                pnt1.print(g1);
            }
        }
    }