Skip to content

Calculate Kevin Bacon scores #10

@vrortvedt

Description

@vrortvedt

We want to add a feature that calculates and displays each user's Kevin Bacon score, which is the user's average degrees of distance from all other members of the Gathering.

So if a Gathering had 100 people, and Alice had made 8 direct connections (1st degree connections), and those 8 people had connected with 50 more unique members (2nd degree connections), and those 50 people had connected with each of the remaining 42 members (3rd degree connections), Alice's Kevin Bacon score would be as follows:
((1 * 8) + (2 * 50) + (3 * 42)) / 100 = 2.34 average degrees of separation

If she connected with two more people, who had an additional 9 unique second degree connections, her score would be:
((1 * 10) + (2 * 59) + (3 * 31)) / 100 = 2.21 average degrees of separation

How can we calculate these scores efficiently using the Gathering data?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions