strathausen / dracula

JavaScript layout and representation of connected graphs.
https://www.graphdracula.net
MIT License
834 stars 132 forks source link

Enhancement: distinguish opposite direction paths between two nodes #17

Closed totoromeow closed 11 years ago

totoromeow commented 11 years ago

I have a enhancement suggestion for drawing edges in the graph. It would be nice if opposite direction paths between two nodes can be different. In my use case, I'm labeling the path with weights and currently there is no way to tell if the number displayed is in which direction (they are also displayed right on top of each other). Is there a way to draw a different edge path when there is already one between two nodes?

monomon commented 11 years ago

No, the path algorithm is the same. You could override graffle, e.g. create a new type of connection. If you want edges that are also displayed differently depending on custom properties, you would have to create your own Graph.Edge, etc.