<｜begin▁of▁sentence｜>### Instruction:
Given an undirected graph with edge set [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3), (3, 4), (4, 5), (4, 6)], how can you use the max_cohesions function from the CohesiveBlocks class in igraph to retrieve the maximum cohesion score for each vertex and print these scores?
### Response:
import igraph as ig

# Assume we have an undirected graph
edges = [(0, 1), (0, 2), (1, 2), (1, 3), (2, 3), (3, 4), (4, 5), (4, 6)]
g = ig.Graph(edges=edges)

# Create a CohesiveBlocks object
cohesive_blocks = ig.CohesiveBlocks(g)
cohesive_blocks = cohesive_blocks.cluster()

# Get the max cohesion score for each vertex
max_cohesions = cohesive_blocks.max_cohesions()

# Print the maximum cohesion scores
print(max_cohesions)
<|EOT|>
