Motivated by dynamic graph visualization, we study the problem of representing a graph $G$ in the form of a \emph{storyplan}, that is, a sequence of frames with the following properties. Each frame is a planar drawing of the subgraph of $G$ induced by a suitably defined subset of its vertices. Between two consecutive frames, a new vertex appears while some other vertices may disappear, namely those whose incident edges have already been drawn in at least one frame. In a storyplan, each vertex appears and disappears exactly once. For a vertex (edge) visible in a sequence of consecutive frames, the point (curve) representing it does not change throughout the sequence. Note that the order in which the vertices of $G$ appear in the sequence of frames is a total order. In the \textsc{StoryPlan} problem, we are given a graph and we want to decide whether there exists a total order of its vertices for which a storyplan exists. We prove that the problem is NP-complete, and complement this hardness with two parameterized algorithms, one in the vertex cover number and one in the feedback edge set number of $G$. Also, we prove that partial $3$-trees always admit a storyplan, which can be computed in linear time. Finally, we show that the problem remains NP-complete in the case in which the total order of the vertices is given as part of the input and we have to choose how to draw the frames.
翻译:以动态图形视觉化为动力,我们研究了一个问题,即以 \ emph{ storyplan} 的形式代表一个图形$G$, 即一个带有以下属性的框架序列。 每个框架都是由一个适当定义的脊椎子子集引出的$G$子图。 在两个连续的框架中,一个新的顶点出现, 而其他一些顶点可能消失, 即那些事件边缘至少已经绘制在一个框架之内的顶点。 在一个故事计划中, 每个顶点出现, 并完全消失一次 。 对于在连续框架序列中可见的顶点( 顶点), 显示它不会在整个序列中变化。 注意在框架序列中显示 $G$ 的子谱的顺序是一个总顺序。 在\ textc{StoryPlan} 问题中, 我们给出了一个图表, 我们想要决定它是否有一个总顺序, 每个垂直点显示一个总长度的垂直点, 代表它在整个 NP- 点里程里程里程里程里要显示两个参数的顺序。