Hacker News new | ask | show | jobs
by Deestan 5515 days ago
All good, just a nitpick: You don't need a unique parent to have a tree. You don't even need directed edges. :)

The purest definition of a tree graph is "a graph with no cycles".

1 comments

We use different definitions. My trees are acyclic connected graphs with one root.