<｜begin▁of▁sentence｜>### Instruction:
Given a graph with vertices and edges, can you clear the graph using the clear function in igraph, and verify that the graph is empty by checking its vertices and edge count?
### Response:
from igraph import Graph

# Create a graph with some vertices and edges
g = Graph(edges=[(0, 1), (1, 2), (2, 3)])

# Clear the graph, removing all vertices, edges, and attributes
g.clear()

# Check if the graph is empty (should not have any vertices or edges)
print(g.vcount(), g.ecount())
<|EOT|>
