简体   繁体   中英

How can I segment out disconnected regions of nodes (arc nodes?) in a graph network?

The image below shows the Node-Edge graph.

在此处输入图片说明

I would like to segment out clusters of nodes into separate graphs as shown below. Nodes 4, 5 are not part of the reset of the graph. How can I do this algorithmically for an arbitrary graph network?

在此处输入图片说明

I am using python 3.8 and windows 10.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM