refactor grep graph code, add label change to arbolade