Unravel graphs to match