Modified graphList class