<｜begin▁of▁sentence｜>### Instruction:
Given two simple graphs represented by Graph.Formula('A--B--C') for the first graph and Graph.Formula('X--Y--Z') for the second graph, can you use the disjoint_union method in igraph to create their disjoint union while preserving the attributes of all graphs?
### Response:
from igraph import Graph

# Define two small graphs
g1 = Graph.Formula('A--B--C')
g2 = Graph.Formula('X--Y--Z')

# Perform disjoint union of the two graphs
g_union = Graph.disjoint_union([g1, g2])

# Print summary of the resulting graph
print(g_union.summary())
<|EOT|>
