<｜begin▁of▁sentence｜>### Instruction:
Given parameters for a stochastic block model with three blocks of sizes 50, 50, and 100 vertices respectively, and a connection probability matrix indicating the probabilities of connection within and between blocks, can you generate an undirected graph without loops corresponding to these parameters using the SBM function in igraph?
### Response:
from igraph import Graph

# Parameters for SBM
counts = [50, 50, 100]  # number of vertices in each block
prob_matrix = [[0.5, 0.05, 0.02],
              [0.05, 0.5, 0.05],
              [0.02, 0.05, 0.5]]  # probability matrix

# Create a stochastic block model graph
g = Graph.SBM(n=sum(counts), pref_matrix=prob_matrix, block_sizes=counts, directed=False, loops=False)

print(g.summary())
<|EOT|>
