<｜begin▁of▁sentence｜>### Instruction:
As a silviculturist, profession you would likely encounter a scenario where you are tasked with managing and studying various interconnected forest ecosystems to promote sustainable forestry practices and conservation efforts. Imagine you are presented with a detailed map that represents these ecosystems as an undirected graph with edge set [(0, 1), (1, 2), (3, 4), (5, 6), (5, 7)], and your goal is to decompose this graph into its connected components to better understand the relationships between different areas within the forest. To assist you in this task, you can leverage the networkx library API for graph analysis and visualization.
### Response:
import igraph as ig

# Example usage
# Create a simple undirected graph with some components
g = ig.Graph(edges=[(0, 1), (1, 2), (3, 4), (5, 6), (5, 7)])

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

# Print the summary of each component
for i, component in enumerate(components):
    print(f'Component {i}:', component.summary())
<|EOT|>
