简体   繁体   中英

Can a directed graph have Ω(n^2) cross edges with respect to its DFS tree?

My assumption is that we could have Ω(n^2) cross edges. Does someone have any idea how to prove it?

Yes. Take the acyclic tournament on n vertices (n vertices, n choose 2 arcs, no cycles). Root the traversal at the vertex with out-degree n-1 and visit the nodes with out-degrees 0, 1, 2, ..., n-2 in order. Every non-tree arc is a cross arc.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM