Yes, a loop. Because 2 nodes in a factor graph means there is an edge connecting them, if there is another path between them, certainly has a loop in the graph.