<｜begin▁of▁sentence｜>### Instruction:
As a paralegal assisting lawyers in a corporate law department, I need to use the decompose method in case we have an issue with a large network of potential business partners. We have an Erdős-Rényi graph with n=10 nodes and p=0.5 probability of edge creation. I need to decompose the graph into its connected components using the networkx library and print each subgraph to thoroughly analyze the potential business connections.
### Response:
from igraph import Graph

# Load or create a graph
g = Graph.Erdos_Renyi(n=10, p=0.5)

# Decompose the graph into subgraphs
decomposed_subgraphs = g.decompose()

# Print the decomposed subgraphs
for idx, subgraph in enumerate(decomposed_subgraphs):
    print(f'Subgraph {idx}:', subgraph)
<|EOT|>
