<｜begin▁of▁sentence｜>### Instruction:
Certainly, as an Electrical Technician, you may encounter scenarios where you need to adjust the layout of electrical systems for improved efficiency. For example, imagine you are tasked with reconfiguring the layout of a circuit board with 10 components arranged in a circular pattern. To reposition the components and rotate the layout by 90 degrees, you might want to explore the use of transformation methods, such as applying custom functions for rotation, to achieve the desired reorientation. This approach can help optimize the arrangement and streamline the electrical system for better performance.
### Response:
from igraph import Graph, Layout
import math

def rotate_layout(layout, angle_degrees):
    # Convert angle to radians
    angle_radians = math.radians(angle_degrees)
    # Define rotation function
    def rotate(point):
        x, y = point
        return (x*math.cos(angle_radians) - y*math.sin(angle_radians),
                x*math.sin(angle_radians) + y*math.cos(angle_radians))
    return layout.transform(rotate)

# Create a graph and layout
graph = Graph.Ring(10)
layout = graph.layout('ring')
# Rotate layout by 90 degrees
rotated_layout = rotate_layout(layout, 90)
# Display original and rotated layouts
print('Original:', layout)
print('Rotated:', rotated_layout)
<|EOT|>
