how to find neighbouring labels

Hi everyone. I have a question about finding neighbouring labels(regions like “S_oc_sup_and_transversal-lh”). I found a tutorial about plotting cortical parcellation. My goal is define all neighbouring labels.