Test for ego network extracted from a graph.