<｜begin▁of▁sentence｜>### Instruction:
Given a graph 'g', how do you determine the cohesive block structure, plot this structure, retrieve the cohesion of a particular block, and construct a hierarchy of these blocks?
### Response:
from igraph import Graph

# Assuming 'g' is an instance of igraph.Graph
blocks = g.cohesive_blocks()

# Plotting the cohesive block structure
blocks.plot()

# Getting the cohesion of a particular block
cohesion = blocks.cohesion(2)

# Getting the hierarchy of blocks
hierarchy = blocks.hierarchy()
<|EOT|>
