Text this: Single-row mapping and transformation of connected graphs