<｜begin▁of▁sentence｜>### Instruction:
Given a tree graph with 4 vertices and each node having up to 2 children, using the Fruchterman-Reingold algorithm for layout, how would you scale the resulting layout coordinates uniformly by a factor of 2 using igraph's Layout.scale method?
### Response:
import igraph as ig

# Create a simple graph
g = ig.Graph.Tree(4, 2)

# Calculate the layout using the Fruchterman-Reingold algorithm
layout = g.layout_fruchterman_reingold()

# Scale the layout by a factor of 2 uniformly in all dimensions
layout.scale(2)

# Print the scaled coordinates
for i in range(len(layout.coords)):
    print(f'Vertex {i}:', layout.coords[i])
<|EOT|>
