You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently default style information is only output for the root graph and this is done by collecting styles from a default GCSS (defined and passed around in the API for this sole purpose). When producing the output, prototype instance of graph, edge and vertex are created and then styled using the GCSS package - the result is output as the default style.
If the GCSS rules instead were written to only apply to identified instances "org.cloudsmith.graph.prototype.edge" etc. then the style rules could be defined in the same package and it would be possible to use a different set of prototypes for different graphs by using an additional containment rule.
The result is that the generated dot output could be much more compact for certain types of graphs where they currently have to have style information per instance.
The text was updated successfully, but these errors were encountered:
Actually, this is not as easy - there are rules that should apply to all instances (the label of edges) and this can not be set in the defaults. Therefore it is always required to separate the two style sets (default, and instance). The API is thus not simplified, and this enhancement seems less valuable. Only when producing really huge graphs would there be a saving in the size of the generated dot source.
As the result is the same of setting say color on individual items and as the default in a sub graph it is not really worth the trouble. It is also questionable if it i meaningful to optimize the dot text output (it would be possible to collect all styles and compute the best defaults).
Currently default style information is only output for the root graph and this is done by collecting styles from a default GCSS (defined and passed around in the API for this sole purpose). When producing the output, prototype instance of graph, edge and vertex are created and then styled using the GCSS package - the result is output as the default style.
If the GCSS rules instead were written to only apply to identified instances "org.cloudsmith.graph.prototype.edge" etc. then the style rules could be defined in the same package and it would be possible to use a different set of prototypes for different graphs by using an additional containment rule.
The result is that the generated dot output could be much more compact for certain types of graphs where they currently have to have style information per instance.
The text was updated successfully, but these errors were encountered: