3
C-sucks
3y

Is the n-ary tree a graph data structure?

Comments
  • 2
    It could be described as a directed graph, but not all directed graphs could be described as a tree, so it depends what you mean.
  • 5
    Yup. All trees are graphs.
  • 1
    Your mom.
  • 0
    @rEaL-jAsE yes, you are right
  • 1
    If it has nodes and edges connecting these nodes then it's probably a graph.
  • 0
    But is it a data structure? I’d say yes. If a linked list qualifies as a data structure, than I see no reason why a tree or a graph shouldn’t also.
  • 0
    why do developers recommend learning python and not javascript to college graduates?
Add Comment