<｜begin▁of▁sentence｜>### Instruction:
Given the need to create an undirected tree structure where almost all vertices have the same number of children (e.g., 3 children each), and the total number of vertices is known (e.g., 10 vertices), how would you use igraph to generate such a tree and print its representation?
### Response:
from igraph import Graph

# Generates a tree with 10 vertices where each node has 3 children
# The tree will be undirected
tree = Graph.Tree(n=10, children=3, mode='undirected')

print(tree)
<|EOT|>
