how to find all completely connected sub-graphs?

H

Hyunchul Kim

Hi, all,

How can I find all "completely connected subgraphs" in a graph when node
and edge data are available?

"completely connected subgraph" is a group, all members of which are
connected to each other.

Thanks,

Hyunchul
 
O

odeits

Hi, all,

How can I find all "completely connected subgraphs" in a graph when node
and edge data are available?

"completely connected subgraph" is a group, all members of which are
connected to each other.

Thanks,

Hyunchul

Do you mean all of the member are directly connected to each other?
 
H

Hyunchul Kim

Dear Odeits,

Yes, I meant directly connected to each other.

Thanks.

Hyunchul
 
O

odeits

Dear Odeits,

Yes, I meant directly connected to each other.

Thanks.

Hyunchul

I would start by creating sets for every node in your graph that are
made up of the node and all of its edges. Then you can use the
issubset to filter down your collection.

http://docs.python.org/library/sets.html

The idea is a node find its completely connected subset. once you have
done this, you can remove all of those nodes from the universal set
and chose another node. repeat until the universal set is empty.
Remember the smallest completely connected subset is an individual
node.

That should be a good enough starting point to figure out an alg that
works for you.

Cheers.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,997
Messages
2,570,241
Members
46,831
Latest member
RusselWill

Latest Threads

Top