计算用户的重要性或“之间中心性”;来自用户的关注者?
我想知道如何找到用户帐户之间有趣的关系,例如根据与其他人的联系最密切的或最有价值的用户。
下面是我使用的两个表。一个拥有所有用户,另一个拥有他们关注的用户的密钥。
User
{
id,
name
}
Follows {
user_id -> user.id,
following_id -> user.id
}
我正在寻找什么类型的算法?
假设不重要的人很少或没有追随者,我如何找到图表中心的人?我认为他们很重要,因为他们有重要的人追随他们。
更新
正如 David 和 Steve 指出的那样,给定节点的距离有多近、哪些节点形成子社区以及哪些用户联系最紧密,这些都是可以从此模式中提取的有用数据的示例。
由于现在许多网站都使用这种“追随者”设计,因此我开始提供赏金,希望获得一些可靠的 SQL 或编程语言实现,这些实现可能对各种各样的人有用。
值得注意的是,虽然某些算法的结果令人着迷,但其他算法(例如查找相关节点)对我们网站的用户来说是有价值的,因为我们可以向他们推荐东西。
I want to know how I can find interesting relationships between users accounts such as the most connected, or most valuable users based on their connections to others.
Below I have the two tables I use. One has all the users, the other has the keys of the users they follow.
User
{
id,
name
}
Follows {
user_id -> user.id,
following_id -> user.id
}
What type of algorithms am I looking for?
Assuming unimportant people have little or no followers, how can I find the people in the center of the graph? I would assume they would be important because they have important people following them.
Update
As David and Steve point out, how close given nodes are, what nodes form sub communities, and which users are the most connected are all examples of useful data that can be pulled from this schema.
Since this "follower" design is used by many sites now, I've started a bounty in the hopes of getting some solid SQL or programming language implementations that might be useful to a wide variety of people.
It's worth noting that while the results of some algorithms are fascinating, others (such as finding related nodes) would have worth to the users of our sites as we can recommend things to them.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您只关注链接,请尝试这些流行的中心性度量(假设 G 是图):
仅通过链接信息就可以轻松计算出上述度量,并且您可以使用这些中心性度量中的一种或组合来找出社交网络中的重要节点。不管怎样,根据“重要”的定义,你可能需要其他不同的措施。
If you only concentrate on the links, try these popular centrality measures (assume G is the graph):
Above measures can be easily calculated by only the link information, and you can use one or combine more of these centrality measures to find out the important node(s) in the social network. Anyway, according to the definition of "important", you may need other different measures.