<｜begin▁of▁sentence｜>### Instruction:
Given a graph with two vertices, can you add an edge between vertex 0 and vertex 1 with a weight attribute of 5 using the add_edge function in igraph?
### Response:
from igraph import Graph

# Create an empty graph
g = Graph()

# Add vertices to the graph
g.add_vertices(2)

# Add an edge with an attribute
edge = g.add_edge(0, 1, weight=5)

# Print the edge tuple (source, target) and its attributes
print(edge.tuple, edge.attributes())
<|EOT|>
