How can I tag and label beams in triangle grid?

2nd Image shows node names and beam numbers and combination of two to make the full label.