define t_{edge} and t_{node} functions