Return relabel mapping as node attributes

Addresses #820