这种有向无环图的名称是什么?

发布于 2024-07-22 05:06:06 字数 114 浏览 5 评论 0原文

也许它甚至不是 DAG,但正如它的命名一样,我不确定该给它起什么标题...

每个节点只能有 0 或 1 个路径进入它的数据结构的名称是什么? 严格来说,这是一棵树吗?

谢谢

Perhaps it isnt even a DAG, but as its naming im after i wasnt sure what title to give this...

What is the name of a data structure where every node can only have 0 or 1 paths INTO it?
Strictly, is this a tree?

Thanks

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

情绪少女 2024-07-29 05:06:06

这是一棵有向树。 像这样的普通树是没有方向的。

您的约束并不精确地定义树的方式(树的定义是任何两个顶点通过不超过一条路径连接),但它确实将您的图限制为有效的有向树。 (除非你想使用需要统一向性的“有向树”的奇怪用法,我不能说这让我感兴趣。)

It's a directed tree. Plain trees as such are undirected.

Your constraint isn't precisely how trees are defined (the definition of a tree is that any two vertices are connected by no more than one path), but it does constrain your graph to be a valid directed tree. (Unless you want to employ weird usages of 'directed tree' that require a uniform tropism, which I can't say interests me.)

护你周全 2024-07-29 05:06:06

还有其他限制吗? 仅根据您提供的信息,我可以构建一个不是树的图。

A-> B-> A

如果添加图是非循环的约束,那么它将是一棵树。

Are there any other constraints? From only the one you've given I can construct a graph that is not a tree.

A -> B -> A

If you add the constraint that the graph is acyclic, then it would be a tree.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文