Scilab/Xcos is a graphical modeling and simulation environment for hybrid dynamic systems. It provides
a graphical editor which allows representing models with block diagrams. While each block represents a
computational function, links specify the data and event flow. However, as the number of the blocks and
the links increases, the Xcos schema can quickly become messy and difficult to read. In this paper, we
present an approach for automatically updating the layout of an Xcos schema by manipulating the links and
the split blocks, so that the diagrams can be kept well-presented and readable. In this approach, we update
the link styles with an optimal route and then, rearrange the positions of blocks. The proposed approach
is exemplified with sample Xcos models. In addition to providing the automatic layout capability to the
Scilab/Xcos user, an application programming interface is also specified for the Scilab/Xcos developer
who want to further enhance the provided feature set.
[1]
Jean-Philippe Chancelier,et al.
Modeling and Simulation in Scilab/Scicos
,
2006
.
[2]
Kenneth H. Rosen.
Discrete Mathematics and Its Applications: And Its Applications
,
2006
.
[3]
Edsger W. Dijkstra,et al.
A note on two problems in connexion with graphs
,
1959,
Numerische Mathematik.
[4]
Thomas J. Misa,et al.
An interview with Edsger W. Dijkstra
,
2010,
Commun. ACM.
[5]
Gregory Gutin,et al.
Digraphs - theory, algorithms and applications
,
2002
.
[6]
R. K. Shyamasundar,et al.
Introduction to algorithms
,
1996
.