8000 How to split graph into disconnected subgraphs · Issue #163 · dominikbraun/graph · GitHub
[go: up one dir, main page]

Skip to content

How to split graph into disconnected subgraphs #163

Open

Description

@orzel7

Is there a way to split graph into subgraphs which are not connected with each other?
For example, the graph with vertices A,B,C,D,E and edges A-B ,C-D, D-E(please note lack of B-C edge) could be divided into two "isolated" graphs:
(A-B)
(C-D-E)

Activity

  1. changed the title [-]How to split graph into isolated subgraphs[/-] [+]How to split graph into disconnected subgraphs[/+] on Dec 17, 2023
  2. AkashKumar7902 commented on Feb 9, 2024

    @AkashKumar7902

    @orzel7 did you found a solution for it ?

  3. orzel7 commented on Feb 9, 2024

    @orzel7
    Author

    @AkashKumar7902 I used github.com/yourbasic/graph package(function graph.Components()) to complete my task. But i still hope this functionality will be added to this package.

  4. dominikbraun commented on Mar 6, 2024

    @dominikbraun
    Owner

    Hi, I'm going to open a feature request for this function.

  5. orzel7 commented on Apr 7, 2024

    @orzel7
    Author

    @dominikbraun, please take a look on my change: #171 If is conceptually ok for you, I'll add some tests.
    @AkashKumar7902, this PR works for me.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0