Update graphExtract.m