Skip to content

danigil/EnvyFreeBipartiteMatchingSite

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Envy Free Matchings in Bipartite Graphs Website

A website that demonstrates the algorithms for finding maximum envy-free matchings in bipartite graphs.

Getting started

First, create a new virtual environment and clone the project locally. Make sure that all the relevant packages are installed. Now, to run the project:
Run the file: run.py. After these steps, the website should run. To use the website, open your browser and write: localhost:5000. After doing so, you should be able to see the next screen:image

Working with the website

From the home screen, you can navigate to other screens. For example, you can read the paper that the code was based on. You can do it by simply pressing the "Article" button above or the link below. The article page should look like this: image By pressing the buttons "Next" and "Previous" you can read the whole paper.

Now, for the demonstration of the algorithms. Press the button "Algorithms". It should show 2 options: "NON Weighted Envy Free Matching" and "Weighted Envy Free Matching". The next explanation will be on the non-weighted version, the weighted version is similar.

The page should look like this: image

You can insert your graph (as pair of edges like in the example). After you have done so, press the "submit" button. The following page should display a graph that contains the maximum matching of the graph. The edges are colored with green color and an explanation can be found below the graph: image Press the button "Next Step" to advance with the algorithm steps. The following page should display a graph that contains the maximum matching and the EFM partition. The vertices that are colored with
blue color are associated with the sets XL and YL. The vertices that are colored with red colors are associated with the sets XS and YS and as before, you can find the explanation below.

The page should look like this: image For the final step, press again the button "Next Step". On the final page, you can find a graph with the maximum envy-free matching. The matching corresponded to the sub-matching: M[XL, YL] where M is the maximum matching. The maximum envy-free matching painted with a blue color and as before, the explanation can be found below the graph.

The page should look like this: image

  • The only difference between the non-weighted and the weighted versions is that in the non-weighted version, the input includes a pair of vertices that represent an edge (for example 5,4 7,4 5,3 7,2 8,2 6,1 5,1) and in the weighted version the input includes also the weight of the edge (for example: 5,4,1.0 7,4,111.0 5,3,1.0 7,2,1.0 8,2,1.0 6,1,1.0 5,1,1.0 7,3,1.0)

Created by: Benjamin Saldman and Daniel Gilkarov, Ariel University.

About

A website that demonstrates the algorithms for finding maximum envy-free matchings in bipartite graphs.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors