add index of Graph