Abstract
This paper describes methods for generating interactive Euler diagrams. User interaction is needed to improve the aesthetic quality of the drawing without writing tedious formal specifications. More precisely, the user can modify the diagram’s layout on the fly by mouse control. We prove that the satisfiability problem is in \({\textsf {PSPACE}}\) and we provide two syntactic fragments such that the corresponding restricted satisfiability problem is already \({\textsf {NP}}\)-hard. We describe (1) an improved local search based approach, (2) a method inspired from the gradient method and a hybrid method mixing both (1) and (2). A software tool was implemented and its implementation is described. We also experimentally compare the different methods. We first see that the improved local search and the hybrid method outperforms the local search from the literature and the gradient method for generating a diagram. Concerning interaction, the local search approach is not suitable but hybrid method and gradient method give both good results in terms of quality of drawings and stability. Specifications are written using region connection calculus (\({\mathbf{RCC-8 }}\)), radius constraints and disjunctions. Euler diagrams are described as set of circles.
Similar content being viewed by others
Notes
For instance, let us consider the set of all bounded functions \(f: \mathbb {R}\rightarrow \mathbb {R}^+\) and the topology defined by the uniform norm. Let b be the subset of functions bounded by 1 in the neighborhood of \(\pm \infty \) and a be the subset of functions that converge to 0 in \(\pm \infty \). As the boundary of b is the set of bounded functions that converge to 1 in \(\pm \infty \), we should have the constraint \( NTPP (a, b)\).
References
Auber, D. (2004). Tulip—a huge graph visualization framework. In M. Jünger & P. Mutzel (Eds.), Graph drawing software (pp. 105–126). Berlin: Springer.
Borning, A., Marriott, K., Stuckey, P. J., & Xiao, Y. (1997). Solving linear arithmetic constraints for user interface applications. In ACM symposium on user interface software and technology (pp. 87–96).
Burton, J., Stapleton, G., Howse, J., & Chapman, P. (2014). Visualizing concepts with Euler diagrams. In Dwyer, T., Purchase, H. C., Delaney, A. (Eds.), Proceedings of diagrammatic representation and inference—8th international conference, diagrams 2014, volume 8578 of Lecture Notes in Computer Science, Melbourne, VIC, Australia, July 28–August 1, 2014 (pp. 54–56). Berlin: Springer.
Canny, J. (1988). Some algebraic and geometric computations in pspace. In Proceedings of the twentieth annual ACM symposium on theory of computing (pp. 460–467). London: ACM.
Dasgupta, S., Papadimitriou, C. H., & Vazirani, U. (2006). Algorithms. New York: McGraw-Hill, Inc.
Ellson, J., Gansner, E. R., Koutsofios, E., North, S. C., & Woodhull, G. (2004). Graphviz and dynagraph—static and dynamic graph drawing tools. In M. Jünger & P. Mutzel (Eds.), Graph drawing software (pp. 127–148). Berlin: Springer.
Fekete, J.-D., & Plaisant, C. (2002). Interactive information visualization of a million items. In IEEE symposium on information visualization, 2002. INFOVIS 2002 (pp. 117–124). IEEE.
Flower, J., & Howse, J. (2002). Generating Euler diagrams. In M. Hegarty, B. Meyer, & N. Hari Narayanan (Eds.), Diagrams, volume 2317 of Lecture Notes in Computer Science (pp. 61–75). Berlin: Springer.
Harrison, J. (2009). Handbook of practical logic and automated reasoning. Cambridge: Cambridge University Press.
Hohenwarter, M., & Preiner, J. (2007). Dynamic mathematics with GeoGebra. Journal of Online Mathematics and its Applications, 7, 1448
Kontchakov, R., Nenov, Y., Pratt-Hartmann, I., & Zakharyaschev, M. (2011). On the decidability of connectedness constraints in 2d and 3d euclidean spaces. In IJCAI proceedings-international joint conference on artificial intelligence (Vol. 22, p. 957).
LaSalle, J. P. (1968). Stability theory for ordinary differential equations. Journal of Differential Equations, 4(1), 57–65.
Lutz, C., & Wolter, F. (2006). Modal logics of topological relations. Logical Methods in Computer Science, 2, 1–14.
Marriott, K., Moulder, P., Stuckey, P. J., & Borning, A. (2001). Solving disjunctive constraints for interactive graphical applications. In T. Walsh (Ed.), CP, volume 2239 of Lecture Notes in Computer Science (pp. 361–376). Berlin: Springer.
Micallef, L., & Rodgers, P. (2014). eulerape: Drawing area-proportional 3-Venn diagrams using ellipses. PLoS One, 9(7), e101717.
Papadimitriou, C. H. (2003). Computational complexity. London: Wiley.
Plaisant, C., Monroe, M., Meyer, T., & Shneiderman, B. (2014). Interactive visualization. In K. Marconi & H. Lehman (Eds.), Big data and health analytics. Boca Raton, FL: CRC Press.
Randell, D. A., Cui, Z., & Cohn, A. G. (1992). A spatial logic based on regions and connection. KR, 92, 165–176.
Reiter, R. (1980). A logic for default reasoning. Artificial Intelligence, 13(1), 81–132.
Renz, J., & Nebel, B. (1999). On the complexity of qualitative spatial reasoning: A maximal tractable fragment of the region connection calculus. Artificial Intelligence, 108(1), 69–123.
Rodgers, P. (2014). A survey of Euler diagrams. Journal of Visual Languages & Computing, 25(3), 134–155.
Rodgers, P., Zhang, L., & Fish, A. (2008). General Euler diagram generation. In Proceedings of diagrammatic representation and inference, 5th international conference, diagrams 2008, Herrsching, Germany, September 19–21, 2008 (pp. 13–27).
Schaefer, M., Sedgwick, E., & Štefankovič, D. (2003). Recognizing string graphs in NP. Journal of Computer and System Sciences, 67(2), 365–380.
Schaefer, M., & Stefankovic, D. (2001). Decidability of string graphs. In Proceedings of the thirty-third annual ACM symposium on Theory of computing (pp. 241–246). London: ACM.
Schockaert, S., De Cock, M., & Kerre, E. E. (2009). Spatial reasoning in a fuzzy region connection calculus. Artificial Intelligence, 173(2), 258–298.
Schwarzentruber, F., & Hao, J.-K. (2014). Drawing Euler diagrams from region connection calculus specifications with local search. In Fermé, E., & Leite, J. (Eds.), Proceedings of logics in artificial intelligence—14th European conference, JELIA 2014, volume 8761 of Lecture Notes in Computer Science, Funchal, Madeira, Portugal, September 24–26, 2014 (pp. 582–590). Berlin: Springer.
Simonetto, P., Auber, D., & Archambault, D. (2009). Fully automatic visualisation of overlapping sets. In Computer graphics forum (Vol. 28, pp. 967–974). Wiley Online Library.
Snyman, J. (2005). Practical mathematical optimization: an introduction to basic optimization theory and classical and new gradient-based algorithms (Vol. 97). Berlin: Springer.
Sridhar, M., Cohn, A. G., & Hogg, D. C. (2011). From video to rcc8: Exploiting a distance based semantics to stabilise the interpretation of mereotopological relations. In M. Egenhofer, N. Giudice, R. Moratz & M. Worboys (Eds.), Spatial information theory (pp. 110–125). Berlin: Springer.
Stapleton, G., Zhang, L., Howse, J., & Rodgers, P. (2010). Drawing Euler diagrams with circles. In Proceedings of diagrammatic representation and inference, 6th international conference, diagrams 2010, Portland, OR, USA, August 9–11, 2010 (pp. 23–38).
Stapleton, G., Zhang, L., Howse, J., & Rodgers, P. (2011). Drawing Euler diagrams with circles: The theory of piercings. IEEE Transactions on Visualization and Computer Graphics, 17(7), 1020–1032.
Van Harmelen, F., Lifschitz, V., & Porter, B. (2008). Handbook of knowledge representation (Vol. 1). Amsterdam: Elsevier.
Verroust, A., & Viaud, M.-L. (2004). Ensuring the drawability of extended Euler diagrams for up to 8 sets. In A. F. Blackwell, K. Marriott, & A. Shimojima (Eds.), Diagrams, volume 2980 of Lecture Notes in Computer Science (pp. 128–141). Berlin: Springer.
Wang, M., Plimmer, B., Schmieder, P., Stapleton, G., Rodgers, P., & Delaney, A. (2011). Sketchset: Creating Euler diagrams using pen or mouse. In 2011 IEEE symposium on visual languages and human-centric computing, VL/HCC 2011, Pittsburgh, PA, USA, September 18–22, 2011 (pp. 75–82).
Acknowledgments
We still wish to thank the three JELIA reviewers for their critical comments and pointers to relevant studies. We also thank the reviewers of this journal version. We thank users who accepted to perform the user study. We thank also Benjamin Boutin for the example in Footnote 2.
Author information
Authors and Affiliations
Corresponding author
Rights and permissions
About this article
Cite this article
Schwarzentruber, F. Drawing Interactive Euler Diagrams from Region Connection Calculus Specifications. J of Log Lang and Inf 24, 375–408 (2015). https://doi.org/10.1007/s10849-015-9230-7
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10849-015-9230-7