added connected method for GraphHandler