Questions tagged [bipartite]

A bipartite graph (aka bigraph) is a graph whose vertices can be divided into two disjoint sets such that vertices from one set only connect to the vertices from the other set and not each other. Applications where they arise include resource planning and coding theory.

378 questions
2
votes
2 answers

Trouble installing the update Bipartite package in R 3.3.0?

Is any solution to fix the trouble? I am interested in to install the bipartite package from github.library(devtools) install_github ("carsten/bipartite") or install_github("biometry/bipartite") or even r bipartite?
abdul
  • 21
  • 2
2
votes
0 answers

Python: detecting alternates in bipartite graph

I'm looking for either an existing library function from some Python library or a custom Python function using numpy or pandas that is fast, that does the following: takes as input a list of edges in a bipartite graph and returns the subset of the…
sambajetson
  • 193
  • 1
  • 9
2
votes
1 answer

Maximum weight bipartite matching

I have a graph in form of a rectangular grid, i.e. N nodes and 2N edges, all adjacent nodes are connected. This means it is two-colourable, and hence it is possible to do bipartite matching on it. Each (undirected) edge has a weight assigned to it -…
evgeny
  • 2,564
  • 17
  • 27
2
votes
2 answers

Size of Special Vertex Set on DAG

In Singapore, this year's (2016) NOI (National Olympiad in Informatics) included the following problem "ROCKCLIMBING" (I was unable to solve it during the contest.) : Abridged Problem Statement Given a DAG with N <= 500 vertices, find the maximum…
2
votes
4 answers

How to check the graph is 2-colorable or not?

I want to find whether the graph is 2-colorable or not more ie. bipartite or non-bipartite. Here is my code in C++ I'm using Welsh Powell Algorithm but something is wrong in the code may be I am missing some corner cases or some logical…
Udbhav Govil
  • 21
  • 3
  • 5
2
votes
1 answer

Bipartite graph, shortest connection?

I have a bipartite graph where each node has connections (edges) of various lengths to the nodes in the other partition. I want to select edges such that the sum of the lengths is as small as possible, but subject to the constraint that every node…
Mildrid
  • 21
  • 2
2
votes
1 answer

Besides BFS and DFS, what is another algorithm that can be used to determine bipartiteness?

I know we can use BFS and DFS to determine if a graph is bipartite or not. For a research paper, I need to talk about a third algorithm as well. Any answers? Much appreciated!
2
votes
2 answers

Bipartite in NetworkX not working properly when renaming nodes

I am trying to convert a bipartite graph to a person-to-person graph using networkX: import networkx as nx import ast from networkx.algorithms import bipartite x=(161,1),(589,2),(162,1),(163,1),(589,2) BI =…
user1680859
  • 1,160
  • 2
  • 24
  • 40
2
votes
4 answers

Prove that a graph is bipartite

Given a graph G in which every edge connects an even degree node with an odd degree node. How can i prove that the graph is bipartite? Thanks in advance
Fotis
  • 97
  • 2
  • 13
2
votes
0 answers

Matchmaking suited Algorithm or implementation

Problem I am working on a matchmaking implementation and looking for different solutions. Two data sets of buyers and sellers with different preferences avaialble(like business type, location, region) with different slots available I need to…
Maddy
  • 85
  • 11
2
votes
1 answer

how to test for bipartite in directed graph

Although we can check a if a graph is bipartite using BFS and DFS (2 coloring ) on any given undirected graph, Same implementation may not work for the directed graph. So for testing same on directed graph , Am building a new undirected graph G2…
MissingNumber
  • 1,142
  • 15
  • 29
2
votes
4 answers

Greedy algorithm for bipartite matching

So I came across a problem in which there were 'n' pilots and 'm' airplanes. Each pilot had a list of airplanes which he could fly. And one pilot can fly only one airplane at a time. You had to determine the maximum number of planes that can fly at…
Anirudh
  • 23
  • 1
  • 4
2
votes
1 answer

valued bipartite projection using R igraph

I am trying to create valued bipartite projection from my data which looks like the following: Name rid Emile 17560 Lou 11800 Luther 11800 Tot 11800 …
2
votes
1 answer

Bipartite graph with node ordering

I want to create a bipartite graph in R and I want to order the two columns of nodes in the graph according to the number of outcoming and incoming links respectively. I tried to do that with igraph, but it seems that in this package it is not…
Broodje
  • 23
  • 4
2
votes
1 answer

Algorithm - Balancing a disconnected bipartite graph

I have a bipartite graph G. I would like to find a fast algorithm (asymptotically) to find an assignment of all the vertices of G into two sets X and Y such that the complete bipartite graph formed by the sets X and Y has as many edges as…
Jay Bosamiya
  • 3,011
  • 2
  • 14
  • 33