created indexer setter for graph, corrected tests