rlookup nodes while printing edges