added test for component_graph()
interim