refine index graph