Geometry Matters in Planar Storyplans
Abstract
A storyplan visualizes a graph as a sequence of frames , each of which is a drawing of the induced subgraph of a vertex subset . Moreover, each vertex is contained in a single consecutive sequence of frames , all vertices and edges contained in consecutive frames are drawn identically, and the union of all frames is a drawing of . In GD 2022, the concept of planar storyplans was introduced, in which each frame must be a planar (topological) drawing. Several (parameterized) complexity results for recognizing graphs that admit a planar storyplan were provided, including -hardness. In this paper, we investigate an open question posed in the GD paper and show that the geometric and topological settings of the planar storyplan problem differ: We provide an instance of a graph that admits a planar storyplan, but no planar geometric storyplan, in which each frame is a planar straight-line drawing. Still, by adapting the reduction proof from the topological to the geometric setting, we show that recognizing the graphs that admit planar geometric storyplans remains -hard.
Keywords and phrases:
geometric storyplan, planarity, straight-line drawing, dynamic graph drawingFunding:
Alexander Dobler: Vienna Science and Technology Fund (WWTF) grant [10.47379/ICT19035].Copyright and License:
2012 ACM Subject Classification:
Theory of computation Computational geometry ; Mathematics of computing Graph theory ; Human-centered computing Graph drawingsEditors:
Vida Dujmović and Fabrizio MontecchianiSeries and Publisher:
Leibniz International Proceedings in Informatics, Schloss Dagstuhl – Leibniz-Zentrum für Informatik
1 Introduction
Planar storyplans, introduced in 2022 [4], represent an approach to draw possibly dense and non-planar graphs as a sequence of planar subdrawings called frames. In addition to the planarity condition for each frame, their sequence must satisfy certain visual consistency criteria in order to be a valid planar storyplan: (i) each vertex belongs to a single, non-empty interval of frames, (ii) each frame shows the subgraph induced by the vertices of the frame, (iii) the shared vertices and edges of any two consecutive frames have the same geometric representation, and (iv) every edge must be visible in at least one frame, i.e., the incident vertices of every edge must co-occur in some frame. Storyplans belong to the class of gradual graph visualizations, which depict a graph in a sequential story-like or unordered small-multiples fashion. The goal of such gradual visualizations is to show a complex graph as a collection of simpler drawings, e.g., planar drawings of subgraphs whose union represents . Identical vertices and edges in the individual subdrawings can be mentally linked by requiring that they are always drawn the same if they occur in multiple subdrawings. Such visualizations find applications both for visualizing dynamic graphs [1, 17], in which vertices and edges occur over time, and for graphs that are decomposed into multiple simpler subgraphs without a sequential order [11, 12]. Storyplans with their temporal sequence of frames are related to drawing graphs in a streaming model. In the storyplan problem, however, one can choose the sequence in which vertices enter and leave the story, whereas this sequence is part of the input in streaming models [8, 2, 3, 15] and in graph stories [9, 7, 6, 10].
The authors of [4, 5] investigated the complexity of deciding whether a given graph admits a planar storyplan in a topological setting, with edges drawn as simple curves between their endpoints. They showed -completeness and fixed-parameter tractability parameterized by the vertex cover number or the feedback edge set number of the graph. Furthermore, they proved that every graph of treewidth at most 3 admits a planar storyplan, and that such a planar storyplan (actually with straight-line edges) can be computed in linear time. In [14] the investigation of storyplans was extended to outerplanar and forest storyplans, in which each frame is not just planar, but actually outerplanar or a forest. They proved a strict containment relation between forest, outerplanar, and planar storyplans and identified graph families that do or do not always admit these storyplans. In the affirmative case, their storyplans use straight-line edges.
In this paper, we investigate an open question by several authors [4, 5] and explore the differences between planar (topological) storyplans and planar geometric storyplans. Obviously, every graph that admits a planar geometric storyplan also admits a planar storyplan. We prove that the converse is not true by providing a counterexample of a graph with 28 vertices that admits a planar storyplan, but none with straight-line edges. The main challenge in our geometric construction is to enforce an obstruction to straight-line visibility for any possible placement of the vertices and for any possible vertex-to-frame assignment. As a second result, we adapt the hardness proof of from [4, 5] to establish that deciding if a given graph admits a planar geometric storyplan remains -hard.
2 Preliminaries
For , we use as a shorthand. For , we define . For a graph , let be its vertex set and let be its edge set. For , is the subgraph of induced by . Given an induced subgraph of some graph , and a vertex of not contained in , is defined as . We denote by the edge connecting vertices and .
The storyplan problem.
A storyplan of a graph on time steps , , consists of a pair . For each , is the visible interval of . We say that appears at , is visible at each , and disappears after . It must hold for a pair of adjacent vertices that , i.e., there is a time step in which the edge can be drawn. We say in this case that and co-occur. For each , is the frame graph at . For a subgraph of , we say that is visible at if all of its vertices are visible. The drawing function represents a drawing of each vertex and drawing of each edge . Further, for each subgraph of , is the drawing of , i.e., the drawing function is applied to each vertex and edge of . For each , we call the frame at . For a storyplan, it must hold that each frame represents a simple drawing of the corresponding induced subgraph. A storyplan is planar if each frame corresponds to a planar drawing. A storyplan is geometric (or straight-line) planar if each frame corresponds to a planar drawing such that each edge is represented by a straight-line segment.
We consider the following two problems.
Problem 1.
Given a graph , does admit a planar storyplan?
Problem 2.
Given a graph , does admit a planar geometric storyplan?
Note that these definitions are slightly different from those in [5]. There, each vertex appears in a unique frame, while we permit multiple vertices appearing in a single frame. It is easy to see, though, that these two definitions are equivalent with regard to the existence of a planar (geometric) storyplan for a given graph .
3 Geometry Matters in Planar Storyplans
In this section, we show our following main result.
Theorem 1.
There is a graph that admits a planar storyplan and that does not admit a planar geometric storyplan.
The graph is defined as follows. It consists of three four-cycles , , and with vertices , and edges , , and for . Furthermore, the graph contains eight apex vertices , , such that each is connected to all vertices of , , and . Lastly, eight more edge vertices , are added. Each is connected to and to all vertices from , and .
We define and . For each and , is an apex-pair.
Below, we give a formal definition of . Further, the graph can also be parsed from one of its planar storyplans in Figure 1.
We prove both statements of Theorem 1 in the following two sections.
3.1 Has a Planar Storyplan
A planar storyplan of with eight frames is given in Figure 1. The four-cycles , , are visible in all frames. Each apex-pair for and is visible only in frame . As the neighborhoods of apex pairs and , , w.r.t. the four-cycles are the same, they can be represented by the same drawing. This is why we show only four drawings in the figure.
3.2 Does Not Have a Planar Geometric Storyplan
This section serves the purpose of showing the following.
Theorem 2.
The graph does not admit a planar geometric storyplan.
We proceed to assume that admits a planar geometric storyplan , and we will arrive at a contradiction. We require a sequence of lemmas that will lead to this contradiction.
Lemma 3.
Let be the visible intervals of the vertices in . Then there exists a set of cardinality at least 6, such that for all and all , , , and are visible at .
Proof.
First, there is a time step in which all cycle vertices from a single cycle, say , are visible. Otherwise, consider the time step after which the first cycle vertex of , say , disappears, yet has not yet appeared. Then, in , the three cycle vertices of and all eight apex vertices must be visible since they need to see both and ; they induce a non-planar , contradicting that every frame is planar. This holds analogously for the cycles . Secondly, there is a time step in which all cycle vertices of all three cycles are visible. Otherwise, consider the time step after which the first cycle vertex disappears. Again, at this time step, we have at least a non-planar by the same argumentation that the apex vertices need to see both the disappearing cycle vertex and at least one cycle vertex that has not yet appeared.
Now sort the intervals in by their start points. Consider the first two intervals in this order. Let and be their respective apex-vertices. We show that . By our previous arguments, there is a time step in which and all cycle vertices are visible. If , then there is furthermore a time step with , such that , , and all cycle vertices are visible. Notice that this amounts to vertices and edges. Further, the induced drawing of the four-cycles and the two apex-vertices must clearly have a face incident to four vertices – four vertices of one of the four-cycles. Adding a chord, keeping the structure planar, we would end up with vertices and edges, a contradiction to Euler’s formula. Symmetrically, by considering the last two intervals when sorted by their end points, we also see that their intersection is empty. The statement follows directly, as each apex must co-occur with each cycle-vertex.
Corollary 4.
There exist at least 6 frames, each containing a different apex pair and all four-cycles.
Lemma 5.
There exists a pair from that is not nested, i.e., in the drawing of only these two four-cycles, the outer face is incident to all vertices.
Proof.
This follows directly from Lemma 3, as there exists a frame with some apex vertex and all three four-cycles. Clearly, the statement holds, as there is otherwise no face (in the induced drawing of , , and ) that contains all four-cycle vertices. In the remainder of the proof, we assume that and form a non-nested pair.
Next, we want to define one of the drawings of or to be “smaller”, see Figure 2. This will be useful in showing that for one of the four-cycles and , in the drawing of this four-cycle plus an apex-vertex, the other four-cycle will always lie on the outer face.
Definition 6.
Consider two simple quadrilaterals and , such that the outer face is incident to all eight vertices. Define if one of the following conditions holds.
-
1.
is contained within the convex hull of .
-
2.
The convex hull of contains two non-parallel line segments and each connecting a point from with a point from . Let be the intersection point of the supporting lines of and . Point is closer to than to (in terms of the classic definition between a point and the set of points defined by the inside region of the quadrilateral).
It is clear that we cannot have and . It can, however, be that we have neither. As the drawings of , , and correspond to simple quadrilaterals, we can show the following lemma (refer to Figure 3 for an illustration). Note that the statement makes sense, as and share the outer face.
Lemma 7.
Let be a frame containing an apex pair and all four-cycles. We have that if is contained within an inner face of . Equivalently, if is contained within an inner face of .
Proof.
Assume that is contained within an inner face of . For the frame , consider the drawing induced by , , and . Consider the edges on the outer face of this drawing. Two of these connect a vertex of with ; we denote these vertices as and . Now, either is contained within the convex hull of , or the convex hull of contains two line segments and , each connecting a vertex of with a vertex of . In the former case, is immediate. In the latter case, and are contained within the triangle defined by , , and . Now notice that, if the intersection point of the lines defined by and was closer to than to , or if and were parallel, the points on and which are vertices of would not be visible from . Hence, we have . As we cannot have both and , we assume, w.l.o.g., that . Thus, in any frame containing , , and some apex vertex , will lie on the outer face of the drawing defined by and .
We will now show the last ingredient, which can be seen as the key lemma of the construction. Essentially, we want to show that at most two edges of are “good” – in the sense that they can lie on the outer face of the drawing of plus some apex vertex (see Figure 4b). More formally, for a fixed drawing of , the edge , , is good if it can be the edge on the outer face of the planar straight-line drawing for some possible placement of some apex vertex in the outer face of . We show the following.
Lemma 8.
For a fixed drawing of , has at most two good edges.
Proof.
The proof distinguishes two cases, depending on whether is convex or not. We start with the convex case. We show that it is not possible that and are both good. By symmetry, this means that and cannot be both good, and the statement follows. Thus, assume that and are good. We observe that in the drawing of , each edge defines two open half-planes – the “outer half-plane” and the “inner half-plane” (see Figure 4a for the outer half-planes). More precisely, the outer half-plane defined by contains as subset the points which can be connected by straight lines to and without crossings, while the inner half plane does not. Thus, for , define as the outer half-plane defined by , and as the inner half-plane. As the half-planes are open, they do not contain the line defined by their corresponding edge. Since is good, is non-empty (an apex vertex must be able to lie in this region for the drawing to be straight-line planar and for the edge to be on the outer face). Similarly, as is good is non-empty. Note that is disjoint from the inner region defined by . For and to both share points with the intersection of and , the line defined by the drawing of must pass through . Because the drawing of is convex, and because does not share points with the region defined by , this is not possible. We obtain a contradiction.
For the concave case, w.l.o.g., assume that the concave corner is at , with its two incident edges and . We claim that none of and can be good. For to be good, we again have that is non-empty. This is not possible: Consider any point outside and in . Notice that the line segment from to intersects an edge of . Hence, cannot be good. The proof that cannot be good proceeds equivalently.
Proof of Theorem 2.
Assume for a contradiction that admits a planar geometric storyplan. By our assumption, the drawings of and are in each other’s outer face. Further does not hold. Thus, in each of the six frames existing by Corollary 4, is in the outer face of the drawing induced by and the apex vertex. For the frame to be planar, the edge vertex of the apex-pair must be on the outer face of the drawing induced by the apex and . Hence, the edge vertex must be connected with a good side of . But, as there are only two good sides (Lemma 8), this is only possible for at most four apex-pairs. Hence, two of the edge vertices of the six apex pairs of Corollary 4 cannot be connected to a good side of , a contradiction.
4 NP-hardness
Furthermore, we can show that Problem 2 remains -hard.
Theorem 9.
Deciding whether a graph admits a planar geometric storyplan is -hard.
Essentially, we apply the same reduction from a variant of SAT as in [5]. Since every planar geometric storyplan is a planar storyplan, we get one direction of the correctness proof for free. However, we have to construct a geometric planar storyplan for every satisfying assignment. This requires a new construction, as the one in [5] does not use straight-line edges. For details, refer to the full version [13].
5 Conclusion
We have shown that not all graphs that admit a planar storyplan also admit a planar geometric storyplan, yet the decision problem remains -hard. A natural open question is whether the problem remains in , or whether it is complete for some other complexity class, such as .
References
- [1] Fabian Beck, Michael Burch, Stephan Diehl, and Daniel Weiskopf. The state of the art in visualizing dynamic graphs. In Rita Borgo, Ross Maciejewski, and Ivan Viola, editors, EuroVis 2014. Eurographics Association, 2014. doi:10.2312/eurovisstar.20141174.
- [2] Carla Binucci, Ulrik Brandes, Giuseppe Di Battista, Walter Didimo, Marco Gaertler, Pietro Palladino, Maurizio Patrignani, Antonios Symvonis, and Katharina Anna Zweig. Drawing trees in a streaming model. In David Eppstein and Emden R. Gansner, editors, Proc. Graph Drawing and Network Visualization (GD’09), volume 5849 of Lecture Notes in Computer Science, pages 292–303. Springer, 2009. doi:10.1007/978-3-642-11805-0_28.
- [3] Carla Binucci, Ulrik Brandes, Giuseppe Di Battista, Walter Didimo, Marco Gaertler, Pietro Palladino, Maurizio Patrignani, Antonios Symvonis, and Katharina Anna Zweig. Drawing trees in a streaming model. Inf. Process. Lett., 112(11):418–422, 2012. doi:10.1016/j.ipl.2012.02.011.
- [4] Carla Binucci, Emilio Di Giacomo, William J. Lenhart, Giuseppe Liotta, Fabrizio Montecchiani, Martin Nöllenburg, and Antonios Symvonis. On the complexity of the storyplan problem. In Patrizio Angelini and Reinhard von Hanxleden, editors, Proc. Graph Drawing and Network Visualization (GD’22), volume 13764 of Lecture Notes in Computer Science, pages 304–318. Springer, 2022. doi:10.1007/978-3-031-22203-0_22.
- [5] Carla Binucci, Emilio Di Giacomo, William J. Lenhart, Giuseppe Liotta, Fabrizio Montecchiani, Martin Nöllenburg, and Antonios Symvonis. On the complexity of the storyplan problem. J. Comput. Syst. Sci., 139:103466, 2024. doi:10.1016/J.JCSS.2023.103466.
- [6] Manuel Borrazzo, Giordano Da Lozzo, Giuseppe Di Battista, Fabrizio Frati, and Maurizio Patrignani. Graph stories in small area. J. Graph Algorithms Appl., 24(3):269–292, 2020. doi:10.7155/jgaa.00530.
- [7] Manuel Borrazzo, Giordano Da Lozzo, Fabrizio Frati, and Maurizio Patrignani. Graph stories in small area. In Daniel Archambault and Csaba D. Tóth, editors, Proc. Graph Drawing and Network Visualization (GD’19), volume 11904 of Lecture Notes in Computer Science, pages 545–558. Springer, 2019. doi:10.1007/978-3-030-35802-0_41.
- [8] Giordano Da Lozzo and Ignaz Rutter. Planarity of streamed graphs. Theor. Comput. Sci., 799:1–21, 2019. doi:10.1016/J.TCS.2019.09.029.
- [9] Giuseppe Di Battista, Walter Didimo, Luca Grilli, Fabrizio Grosso, Giacomo Ortali, Maurizio Patrignani, and Alessandra Tappini. Small point-sets supporting graph stories. In Patrizio Angelini and Reinhard von Hanxleden, editors, Proc. Graph Drawing and Network Visualization (GD’22), volume 13764 of Lecture Notes in Computer Science, pages 289–303. Springer, 2022. doi:10.1007/978-3-031-22203-0_21.
- [10] Giuseppe Di Battista, Walter Didimo, Luca Grilli, Fabrizio Grosso, Giacomo Ortali, Maurizio Patrignani, and Alessandra Tappini. Small point-sets supporting graph stories. J. Graph Algorithms Appl., 27(8):651–677, 2023. doi:10.7155/JGAA.00639.
- [11] Emilio Di Giacomo, Walter Didimo, Giuseppe Liotta, Fabrizio Montecchiani, and Ioannis G. Tollis. Exploring complex drawings via edge stratification. In Stephen K. Wismath and Alexander Wolff, editors, Proc. Graph Drawing and Network Visualization (GD’13), volume 8242 of Lecture Notes in Computer Science, pages 304–315. Springer, 2013. doi:10.1007/978-3-319-03841-4_27.
- [12] Emilio Di Giacomo, Walter Didimo, Giuseppe Liotta, Fabrizio Montecchiani, and Ioannis G. Tollis. Techniques for edge stratification of complex graph drawings. J. Vis. Lang. Comput., 25(4):533–543, 2014. doi:10.1016/j.jvlc.2014.05.001.
- [13] Alexander Dobler, Maximilian Holzmüller, and Martin Nöllenburg. Geometry matters in planar storyplans. CoRR, abs/2508.12747, 2025. arXiv:2508.12747.
- [14] Jirí Fiala, Oksana Firman, Giuseppe Liotta, Alexander Wolff, and Johannes Zink. Outerplanar and forest storyplans. In Henning Fernau, Serge Gaspers, and Ralf Klasing, editors, Proc. Theory and Practice of Computer Science (SOFSEM’24), volume 14519 of Lecture Notes in Computer Science, pages 211–225. Springer, 2024. doi:10.1007/978-3-031-52113-3_15.
- [15] Michael T. Goodrich and Pawel Pszona. Streamed graph drawing and the file maintenance problem. In Stephen K. Wismath and Alexander Wolff, editors, Proc. Graph Drawing and Network Visualization (GD’13), volume 8242 of Lecture Notes in Computer Science, pages 256–267. Springer, 2013. doi:10.1007/978-3-319-03841-4_23.
- [16] Maximilian Holzmüller. Expanding the planar storyplan problem. Master’s thesis, Technische Universität Wien, 2025. URL: https://repositum.tuwien.at/handle/20.500.12708/213348.
- [17] Corinna Vehlow, Fabian Beck, and Daniel Weiskopf. Visualizing dynamic hierarchies in graph sequences. IEEE Trans. Vis. Comput. Graph., 22(10):2343–2357, 2016. doi:10.1109/TVCG.2015.2507595.
