build node relation