<｜begin▁of▁sentence｜>### Instruction:
As a knowledgeable assistant well-versed in networkx, I can help you with your query. Suppose you are working on a project where you have data representing relationships between individuals within a community. In this dataset, you observe connections such as friendships (0, 1), (0, 2), (1, 2), and family relations (3, 4). Now, if you are using networkx to analyze this network structure, you might need to determine the number of connected groups within this community. By leveraging networkx's functionality, you can efficiently identify the distinct clusters or connected components existing within the community graph.
### Response:
from igraph import Graph

# Given a graph with edges
edges = [(0, 1), (0, 2), (1, 2), (3, 4)]
g = Graph(edges)

# Find the connected components
clustering = g.clusters()

# Print the number of clusters
print('Number of clusters:', len(clustering))
<|EOT|>
