Thank you for your reply. The first i in the loop is not used anywhere, and it is mainly a counter. The second i is used in the list comprehension to generate a pair of points and then to converts these two points to nodes identifiers, which are a and b.