# Get all nodes connected

**URL:** https://community.neo4j.com/t/get-all-nodes-connected/55997
**Category:** Neo4j Graph Platform
**Tags:** cypher
**Created:** [May 8, 2022, 3:33pm UTC](https://community.neo4j.com/t/get-all-nodes-connected/55997 "2022-05-08T15:33:17Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Cobra](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/cobra/32/35243_2.png) [@Cobra](https://community.neo4j.com/u/Cobra)
#### Post date: [May 9, 2022, 6:34am UTC](https://community.neo4j.com/t/get-all-nodes-connected/55997/4 "2022-05-09T06:34:45Z")

</div>

Hello @vence_andersen1 🙂

The best solution is to use GDS and the [Weakly Connected Components](https://neo4j.com/docs/graph-data-science/current/algorithms/wcc/) algorithm.

Some examples:

- [How to get group of connected nodes?](https://community.neo4j.com/t/how-to-get-group-of-connected-nodes/41855/4)
- [How to remove connected components less than x nodes?](https://community.neo4j.com/t/how-to-remove-connected-components-less-than-x-nodes/24166/73)
- [Delete a subgraph from a database](https://community.neo4j.com/t/delete-a-subgraph-from-a-database/55446/8)

Regards,  
Cobra

---

_[View the full topic](https://community.neo4j.com/t/get-all-nodes-connected/55997)._
