<｜begin▁of▁sentence｜>### Instruction:
Given a graph where each vertex's size is intended to visually represent its degree, how can you adjust the vertex sizes in an igraph object such that larger sizes indicate higher degrees?
### Response:
from igraph import Graph
import igraph as ig

# Assuming we have a graph object 'g'
g = ig.Graph([(0, 1), (1, 2), (2, 0)])

# Set the size of each vertex to be proportional to its degree
sizes = [deg / 2.0 for deg in g.degree()]

# Apply the sizes to the vertices
g.vs.set_size(sizes)

# Plot the graph
ig.plot(g, bbox=(300, 300), vertex_label=g.vs.indices)
<|EOT|>
