How to determine whether there is an intersection between two paths through the pyhton script. And how to determine which two paths intersect when there are more than three paths.

Try this:

```
layer = Glyphs.font.selectedLayers[0]
inter = layer.intersections()
# find number of intersection
print(inter.count() )
# coordinate of intersection
for node in range(inter.count()):
print(node, inter.pointAtIndex_(node))
```

This code only returns the coordinates of the intersection point. If there are four paths, it is impossible to know which two paths intersect

I want to know which paths intersect, such as path1 intersects path2 instead of path1 intersects path3

```
path_list = []
for path_i in Layer.paths:
path_list.append(path_i)
p1 = path_list[0]
p2 = path_list[1]
print(p1.bezierPath.intersectWithPath_(p2.bezierPath))
```

This seems to be achievable

However, when the number of paths in the layer is large, the calculation required to determine the intersection between paths will be very large. So are there any other good methods, such as directly reading the path index through intersections