gpt4 book ai didi

algorithm - 图数据结构中伪图和多图的区别?

转载 作者:塔克拉玛干 更新时间:2023-11-03 05:13:59 25 4
gpt4 key购买 nike

有的作者说pseudograph和multigraph是一样的,有的说两者不同。我刚刚在维基百科上阅读 https://en.wikipedia.org/wiki/Multigraph .它们之间的确切区别是什么?

最佳答案

从您提供的链接:

a multigraph (in contrast to a simple graph) is a graph which is permitted to have multiple edges (also called parallel edges), that is, edges that have the same end nodes. Thus two vertices may be connected by more than one edge.

a pseudograph is a multigraph that is permitted to have loops.

所以区分因素是多重图可能没有环,只有自边。而伪图则可以兼而有之。

关于algorithm - 图数据结构中伪图和多图的区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52641045/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com