Afsana Khan
Afsana Khan

Reputation: 122

Efficient data structure to store subsets of a graph

I have derived some subsets of a graph.Now I want to store this subsets and label them such as subset_1,subset_2 etc.Which data structure would be efficient to do that? This is the main graph

enter image description here

The circled marks are the subsets

enter image description here

Upvotes: 1

Views: 174

Answers (1)

Amsal N
Amsal N

Reputation: 211

The subgraph is actually a graph. You can use Graph to store these subsets/subgraph.

Upvotes: 0

Related Questions