logoalt Hacker News

busterlast Friday at 4:51 PM1 replyview on HN

Isn't it the same wisdom as to avoid cyclic dependencies?


Replies

rhelzlast Friday at 4:57 PM

It is not only that. An acyclic graph can be non-planar, which means that as you add more nodes, the number of edges can grow as O(n^2).

A polytree is a planar graph, and the number of edges must grow linearly with the number of edges.