JuliaGraphs / JuliaGraphs/Graphs.jl

Add support for induced bipartite subgraph

Open
#145 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
Julia
Stars
538
Forks
128
Avg merge
10h 25m
Merged PRs (30d)
2

Description

As part of a project, I had to use bipartite induced subgraphs of a graph.

Let $G=(V,E) $ be a graph and let $X,Y\subseteq V$ such that $X \cap Y = \emptyset$. The bipartite subgraph of G induced by $X$ and $Y$ is $$(X \cup Y, X \times Y \cap E) $$
In other words, it's the bipartite subgraph made of all the edges of $G$ that are between $X$ and $Y$.
Such a construction is useful in, for example, the search of vertex separators.

I've made a simple implementation (30 lines or so) for it and I think it might be worth including it.
Before making a pull request, I wanted to see if this is something people might find interesting to have in the package.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points, and the proposed implementation is not included. Begin by locating Graphs.jl's graph-construction API and test suite, then verify the induced edge set for disjoint X and Y; done means the feature is exposed and its behavior is covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
julia
Domain
data
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.