Hello Liu,
there is an example code of what you are looking for in the "label_largest_component" documentation:
http://graph-tool.skewed.de/static/doc/topology.html#graph_tool.topology.label_largest_component

Best,
Giuseppe

2014-04-29 9:15 GMT+02:00 Liu <boxiliu.hust@gmail.com>:
Hi, 

I have tried to simulate the phenomenen of cascading failures in interdependent networks. But I can't remove the nodes that don't belong to the largest component. Is there any simple solution for this task?

Best,
Liu

_______________________________________________
graph-tool mailing list
graph-tool@skewed.de
http://lists.skewed.de/mailman/listinfo/graph-tool