计算机科学 > 数据结构与算法
[提交于 2020年12月15日 (v1),最后修订于 2025年3月21日 (此版本, v6)]
标题:Simpler and Unified Recognition Algorithm for Path Graphs and Directed Path Graphs
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:A path graph is the intersection graph of paths in a tree. A directed path graph is the intersection graph of paths in a directed tree. Even if path graphs and directed path graphs are characterized very similarly, their recognition algorithms differ widely. We further unify these two graph classes by presenting the first recognition algorithm for both path graphs and directed path graphs. We deeply use a recent characterization of path graphs, and we extend it to directed path graphs. Our algorithm does not require complex data structures and has an easy and intuitive implementation, simplifying recognition algorithms for both graph classes.