8000 Addition of Social Aware Assignment Algorithm to NetworkX Library (Coalition Formation in Multi-agent Systems) by VictoKu1 · Pull Request #6364 · networkx/networkx · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
8000

Addition of Social Aware Assignment Algorithm to NetworkX Library (Coalition Formation in Multi-agent Systems) #6364

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

VictoKu1
Copy link
@VictoKu1 VictoKu1 commented Jan 14, 2023

Dear NetworkX team,

I am writing to submit a pull request to add the "Social Aware Assignment of Passengers in Ridesharing" algorithm to the NetworkX library. The algorithm is based on the article "Levinger, C., Hazon, N., & Azaria, A. (2022). Social Aware Assignment of Passengers in Ridesharing". Link to Article.

The social aware assignment problem belongs to the field of coalition formation, which is an important research branch within multiagent systems. It analyzes the outcome that results when a set of agents is partitioned into coalitions.

Social Aware Assignment Definition:

Given a number k and an undirected friendship graph G = (V, E) where (v_i, v_j) ∈ E if v_i and v_j are connected. The goal is to find an assignment P, which is a partition of the set V, such that ∀S ∈ P, |S|≤ k, and the value of P, V_P = |{(v_i, v_j) ∈ E: ∃S ∈ P where v_i ∈ S and v_j ∈ S}| is maximized.

Implementation Details:

  • Algorithm: Implemented in the file networkx/algorithms/approximation/coalition_formation.py.
  • Tests: Included test cases in the file networkx/algorithms/approximation/tests/test_coalition_formation.py.
  • Special Case: The Match_And_Merge model is a special case of simple Additively Separable Hedonic Games (ASHGs).

The algorithm has been implemented in such a way that it can be easily integrated into the existing NetworkX library. It has completed all the tests, including both the tests I wrote and the existing library tests.

I would be happy to answer any questions or provide additional information about the implementation. Thank you for considering my pull request.

Best regards,
VictoKu1

< 10000 path d="M8 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM1.5 9a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Zm13 0a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"> Copy link
Author
@VictoKu1 VictoKu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the name social_aware_assignment_of_passengers_in_ridesharing to coalition_formation as described in the article, performed all the changes as requested and added tests with random graphs.

@VictoKu1 VictoKu1 requested a review from erelsgl January 16, 2023 12:58
@VictoKu1 VictoKu1 changed the title Addition of Social Aware Assignment of Passengers in Ridesharing algorithm to NetworkX library Addition of Social Aware Assignment: A Special Case of Coalition Formation in Multi-Agent Systems Algorithm to NetworkX library Jan 16, 2023
@VictoKu1 VictoKu1 changed the title Addition of Social Aware Assignment: A Special Case of Coalition Formation in Multi-Agent Systems Algorithm to NetworkX library Addition of Social Aware Assignment Algorithm for Coalition Formation in Multi-agent Systems to NetworkX Library Jan 16, 2023
Copy link
Author
@VictoKu1 VictoKu1 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor comment fix

@VictoKu1 VictoKu1 changed the title Addition of Social Aware Assignment Algorithm for Coalition Formation in Multi-agent Systems to NetworkX Library Addition of Social Aware Assignment Algorithm using Coalition Formation in Multi-agent Systems to NetworkX Library Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 16, 2023
@VictoKu1 VictoKu1 requested a review from erelsgl January 17, 2023 22:45
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 22, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 22, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 22, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 22, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 22, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Jan 22, 2023
@VictoKu1 VictoKu1 changed the title Addition of Social Aware Assignment Algorithm using Coalition Formation in Multi-agent Systems to NetworkX Library Addition of Coalition Formation in Multi-agent Systems implementation, which is specifically a Social Aware Assignment Algorithm to NetworkX Library Jan 22, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Feb 19, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Feb 19, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Mar 23, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Mar 23, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Mar 23, 2023
VictoKu1 added a commit to VictoKu1/networkx that referenced this pull request Mar 23, 2023
@VictoKu1 VictoKu1 changed the title Addition of Coalition Formation in Multi-agent Systems implementation, which is specifically a Social Aware Assignment Algorithm to NetworkX Library Addition of Social Aware Assignment Algorithm to NetworkX Library (Coalition Formation in Multi-agent Systems) Apr 8, 2025
@VictoKu1
Copy link
Author
VictoKu1 commented Apr 8, 2025

Hi @dschult, I have made the changes you requested. Could you please review and let me know if it's possible to merge this pull request?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

3 participants
0