<｜begin▁of▁sentence｜>### Instruction:
Given a graph object that has been assigned a 'name' vertex attribute, can you use the is_named method to determine if the graph is considered named according to igraph's definition?
### Response:
from igraph import Graph

# Create a new graph with 3 vertices
graph = Graph(n=3)

# Set the name attribute for the graph
graph['name'] = 'MyGraph'

# Check if the graph is named
is_named = graph.is_named()
print('Is the graph named?', is_named)
<|EOT|>
