t**********s 发帖数: 930 | 1 【 以下文字转载自 Database 讨论区 】
发信人: tennisalways (tennisforever), 信区: Database
标 题: How to design a database model related to six degree of separation?
发信站: BBS 未名空间站 (Tue Jul 31 14:43:18 2007)
I am trying to design a database model related to the small world (or six
degree of separation) phenomenon.
With this design, I should be able to write two queries efficiently:
a) How many degrees of separation are there between two people.
(assuming they are connected). You may assume that you do not ha |
|