<｜begin▁of▁sentence｜>### Instruction:
As a chauffeur who drives vehicles for transportation, imagine you are tasked with navigating a complex road network for a company that requires timely and efficient transportation. Within this scenario, you have been provided with a list of road connections, including the highways and streets on which you will be driving. Your task is to utilize a tool like NetworkX to analyze the weakly connected components of the road network to optimize your routes and ensure seamless passenger transport.
### Response:
from igraph import Graph

# Define your graph edges
edges = [(0, 1), (1, 2), (3, 4), (4, 5)]
g = Graph(edges)

# Calculate the weakly connected components
components = g.components(mode='weak')

# Print the number of components and the members of each component
print('Number of components:', len(components))
for i, component in enumerate(components):
    print(f'Component {i}:', component)
<|EOT|>
