handaling disconnected graphs
Merge pull request #7 from msgmaxim/disconnected_graphs

handaling disconnected graphs