0

I want to know how to avoid bidirectional connections. For example:

https://i.stack.imgur.com/4HR4H.png

Is there any way to do this?

I work with mxGraph, javascript.

EDIT: Sorry, maybe I didn’t explain well, I mean if we have two cells (a---> b) cannot be (a <--- b) this may be detected in real time.

user2146556
  • 21
  • 1
  • 6

2 Answers2

1

Remove startArrow=classic from the style of the edge.

Frodo Baggins
  • 8,290
  • 6
  • 45
  • 55
user1084282
  • 1,003
  • 7
  • 6
  • Sorry, maybe I didn’t explain well, I mean if we have two cells (a---> b) cannot be (a <--- b) this may be detected in real time. – user2146556 Oct 10 '13 at 16:50
0

you can check out this example Validation - Using multiplicities for automatically validating a graph.

mxMultiplicity defines invalid connections along with the error messages that they produce.

jiali
  • 11
  • 3