When connecting an edge from A to B, the topmost element is always picked to connect to. In many cases, this is not what you want, certainly because edges are always drawn on top. AToMPM also doesn't support edges between edges, making this even worse. Ideally, the connection algorithm should look at the topmost node, and not the topmost element. Even better would be to just sum up all possible options, including nodes under the current node.
When connecting an edge from A to B, the topmost element is always picked to connect to. In many cases, this is not what you want, certainly because edges are always drawn on top. AToMPM also doesn't support edges between edges, making this even worse. Ideally, the connection algorithm should look at the topmost node, and not the topmost element. Even better would be to just sum up all possible options, including nodes under the current node.
When connecting an edge from A to B, the topmost element is always picked to connect to. In many cases, this is not what you want, certainly because edges are always drawn on top. AToMPM also doesn't support edges between edges, making this even worse. Ideally, the connection algorithm should look at the topmost node, and not the topmost element. Even better would be to just sum up all possible options, including nodes under the current node.