gephi icon indicating copy to clipboard operation
gephi copied to clipboard

Ability to swap label position for mutual directed edges

Open codemann8 opened this issue 2 years ago • 3 comments

Currently, when you add 2 directed edges with labels, both edge labels appear and with good distance from each other. However, I wish there was an option to swap the position of these labels. As seen in the example below, the edge label is based on the name of the node where the edge originates, so in this scenario, you can see how this reads as backwards. Being able to flip this would be desirable, even at a global level. image

codemann8 avatar Feb 28 '23 21:02 codemann8

Good point cc @jacomyma

seinecle avatar Mar 22 '23 06:03 seinecle

On the intuition: I agree. Here is the rationale. In a situation like this one, where the edge is clearly visible, I think we tend to associate the label with the arrow head. Indeed, each label is close to one of the two arrow heads. So we associate the label with the target, not the source. In a situation where it is more confusing, we may not make this association, but then it becomes just a matter of convention. I see no consistency issue with another convention, so we might just change it. I don't think it will bother too many people (mutual edges are not so common).

On the strategy: we could (1) change the default behavior and (2) make it settable. I think both are fine and (1) is the priority.

jacomyma avatar Mar 22 '23 09:03 jacomyma

👍 so maybe just a param to change in the code base - do you know where that would be or does it need a bit of research?

seinecle avatar Mar 22 '23 09:03 seinecle