<｜begin▁of▁sentence｜>### Instruction:
As a photographer, you may need to adjust the dimensions of the bounding box when editing images to ensure that specific elements are captured within a certain area. In this scenario, imagine you have captured an image where the initial bounding box has a width of 5 units and its left edge is located at coordinate 0. Using BoundingBox provided by networkx, can you use the width.setter to adjust the right edge in order to change the width of the bounding box to 10 units?
### Response:
import networkx as nx

# Define a rectangular bounding box with a specified left, bottom, width and height
left = 0
bottom = 0
width = 5
height = 3

# Create a BoundingBox instance
bbox = nx.utils.BoundingBox(left, bottom, left+width, bottom+height)

# Set the width to a new value by adjusting the right edge
new_width = 10
bbox.right = bbox.left + new_width

# Print the updated width of the bounding box
print('Updated width:', bbox.width())
<|EOT|>
