<｜begin▁of▁sentence｜>### Instruction:
As a software engineer working on a project that utilizes network analysis for a transportation logistics system, you've integrated the NetworkX library into your Python application to model the transportation network. Now, you're tasked with a specific functionality: determining whether a particular route segment forms a loop in the network, which is crucial for optimizing delivery routes and avoiding inefficiencies.

Incorporating this requirement into your application, you need to leverage the `is_loop` function provided by the NetworkX library. This function allows you to check whether a given edge in the transportation network forms a loop, indicating a closed loop in the route that might lead to redundancies or inefficiencies in delivery operations.
### Response:
from igraph import Graph

# Create a graph with a loop and a regular edge
g = Graph(edges=[(0, 0), (0, 1)])

# Check for loops in edges
eid_of_loop = 0  # Assuming edge ID 0 corresponds to the loop
is_loop_present = g.is_loop(eid_of_loop)

# Print whether the graph contains a loop
print('Graph contains a loop:' if is_loop_present else 'Graph does not contain a loop')
<|EOT|>
