Search code examples
data-structuresgraphtreedirected-graph

Are Trees Directed or Undirected Graphs?


I have read that Trees are special cases of Graphs. Graphs can be directed or undirected. But if we consider tree as a data structure is it directed or undirected graph?


Solution

  • See Tree on Wikipedia :

    A tree is an undirected graph.