-
Notifications
You must be signed in to change notification settings - Fork 22
Description
Currently, the graph widget draws all graphs as a simple and undirected graph.
It would be nice to have a way to distinguish simple graphs, digraphs and multigraphs.
For instance, a digraph should show the arrows to indicate the direction of the links as in the example below:
However, we should keep in mind that any change in the way how we draw things can drastically affect the performance of the GUI.
For instance, in the case of a multigraph, in order to change the style of a second edge, we'd have to keep track of the first edge, or "predict" that two or more edges will have to be drawn etc. So, we need to ensure that those operations do not add an extra and unnecessary cost to the simplest and most common scenario, i.e., simple undirected graph. On the contrary case, we could extend the base classes and implement an optimized version for multigraphs. Then, in the GUI, the user could choose which widget they wish to open, i.e., undirected graph style, directed style or multigraph style 😃
Thanks @Sedictious for raising this issue.