def draw_leg(self): # nx.draw(self.LEG) print "Connected Components of LEG:\n" + str(list(nx.connected_components(self.leg)))