added a note about non-connected graphs