网络直径是什么意思?

发布于 2024-09-08 00:05:29 字数 569 浏览 2 评论 0原文

“具有 6 个顶点的图此链接上显示的图表和 7 条边,其中最左边的 6 号顶点是叶顶点或下垂顶点。”的直径为 4?对还是错?

定义是

图形的直径是最大的 任意顶点的偏心率 图形。也就是说,它是最伟大的 任意一对顶点之间的距离。 要找到图形的直径,首先 找到每个之间的最短路径 一对顶点。最大长度 这些路径中任何一个的直径都是 图表的。

具有 N 的网络的直径 D 节点被定义为最大 任意两个节点之间的最短路径 在网络中

具有 N 的网络的直径 D 节点被定义为最长路径, p,任意之间的最短路径 两个节点 D ¼ max (minp[pij length( p))。在此等式中,pij 是 节点 i 和 之间的路径长度 j 和长度 (p) 是一个过程 返回路径的长度 p。为了 例如,4 4 目 D 的直径 ¼ 6。

The diagram shown on this link of the "A graph with 6 vertices and 7 edges where the vertex no 6 on the far-left is a leaf vertex or a pendant vertex." has DIAMETER 4? right or wrong?

Definitions are

The diameter of a graph is the maximum
eccentricity of any vertex in the
graph. That is, it is the greatest
distance between any pair of vertices.
To find the diameter of a graph, first
find the shortest path between each
pair of vertices. The greatest length
of any of these paths is the diameter
of the graph.

Diameter, D, of a network having N
nodes is defined as the maximum
shortest paths between any two nodes
in the network

Diameter, D, of a network having N
nodes is defined as the longest path,
p, of the shortest paths between any
two nodes D ¼ max (minp[pij length(
p)). In this equation, pij is the
length of the path between nodes i and
j and length (p) is a procedure that
returns the length of the path, p. For
example, the diameter of a 4 4 Mesh D
¼ 6.

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

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

发布评论

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

评论(1

黑寡妇 2024-09-15 00:05:29

维基百科示例

根据定义,我认为直径为 3。

alt text

最长最短路径的长度为 3 条边,例如在 6-16-2 之间。


网格示例

这是您的第二个定义,经过一些排版更正,使其有意义:

网络的

直径D被定义为任意两个节点之间的最短路径中的最长路径。例如,4x4网格的直径D = 6

让我们看一下 4x4 网格 示例:

A---B---C---D
|   |   |   |
E---F---G---H
|   |   |   |
I---J---K---L
|   |   |   |
M---N---O---P

最长最短路径的长度为 6 条边,即在 APMD 之间。

参考文献

另请参阅

The Wikipedia Example

Looks like the diameter is 3 to me by definition.

alt text

The longest shortest paths have length of 3 edges, e.g. between 6-1 and 6-2.


The Mesh Example

Here's your second definition, with some typographical correction so that it makes sense:

Diameter D of a network is defined as the longest path of the shortest paths between any two nodes. For example, the diameter of a 4x4 mesh D = 6

Let's take a look at the 4x4 mesh example:

A---B---C---D
|   |   |   |
E---F---G---H
|   |   |   |
I---J---K---L
|   |   |   |
M---N---O---P

The longest shortest path has length of 6 edges, i.e. between A-P and M-D.

References

  • Mathworld - Wolfram/Graph Diameter

    The length of the "longest shortest path" between any two graph vertices of a graph.

  • Graph and Digraph Glossary - cudenver.edu

    Diameter: The diameter of a graph is the length of the longest chain you are forced to use to get from one vertex to another in that graph. You can find the diameter of a graph by finding the distance between every pair of vertices and taking the maximum of those distances.

See also

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