Add a function to find densest subgraph

Open
#570 2 comments 0 reactions 1 assignee View on GitHub

@mtreinish is already working on this.

Since Mar 27, 2022.

Assessment

This issue has not been assessed yet.

Description

enhancement
What is the expected enhancement?

Something that came up in the review on https://github.com/Qiskit/qiskit-terra/pull/7740 is that it would be good for retworkx to have a function to find the densest subgraph in a graph. To start we can just reuse the algorithm from the DenseLayout pass which just performs a BFS list from every node in the graph (in parallel) and takes the first n nodes from that and applies the weights and picks the most connected one with the best score from the weights. I'm not familiar with the literature on this problem space, but if there is a better algorithm that offers a faster or more complete solution we can look at implementing that too.

Dominant language
Rust
Stars
1.8k
Forks
220
Avg merge
3d 16h
Merged PRs (30d)
3

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.

More from Qiskit/rustworkx

All issues in Qiskit/rustworkx

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.