public boolean check(Point p2)
    {
        //boolean flag=false;
        
        for(int i=0;i<connector.size();i++)
        {
            Edge e = (Edge) connector.get(i);
            
            if(e.p1==p2 || e.p2==p2)
                return true;
        }
        
        return false;
    }