We present an $O(n^2)$-time algorithm to test whether an $n$-vertex directed partial $2$-tree is upward planar. This result improves upon the previously best known algorithm, which runs in $O(n^4)$ time.
翻译:我们提出了一个$O(n%2)-时间算法,以测试一美元外向部分为$2美元的树是否向上。 这一结果比以前最知名的算法(以$(n%4)计时算法)有所改进。