Distinguish boundary nodes for n=4 as well