When writing KGraph models, it is often necessary to provide lots of redundant information just to render a few elements, e.g. nodes and edges with labels. To get a small example graph, it is necessary to specify an edge label placement property value for each edge.
Also, one cannot use node IDs for the node labels, so each node has to have a label in addition to its ID.
This makes KGraph models lengthy, tedious to write, error-prone and hard to maintain because one would copy-paste a lot.
KGraph should provide default settings automatically if information is omitted in a model:
- Edge labels should by default have an overridable
de.cau.cs.kieler.edgeLabelPlacement = CENTER
- It should be possible to inject the ID of a node as its label text. Admittedly in many cases it makes sense to have different labels and IDs, but for small examples it is desirable to just use the ID as a label by default.