algorithm - 如何以编程方式证明 "Six Degrees of Separation"概念?

标签 algorithm networking graph-theory combinatorics

我有一个包含 2000 万用户以及这些人之间的联系的数据库。如何在编程中以最有效的方式证明“六度分离”的概念?

link to the article about Six degrees of separation

最佳答案

您只想测量 diameter of the graph. 这正是找出图中最远连接节点之间的分离度的度量。

Google 上有很多算法,Boost graph也是。

关于algorithm - 如何以编程方式证明 "Six Degrees of Separation"概念?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/988919/

相关文章:

algorithm - 分割树数据位置到树位置关系

algorithm - 使用 Dijkstra 找到最小生成树?

python - 在 1D-NumPy 数组中查找单数/局部最大值/最小值集(再次)

c# - 自动缩放和刻度区间图表

c# - TcpListener 和 TcpClient 共享本地端口

c++ - ACE_SOCK_Dgram::open() 和 errno

.net - 软件带宽/数据库增长公式

algorithm - Ford-Fulkerson 算法和最大流最小割定理

terminology - 简单图论术语问题

python - 调试二进制搜索