<｜begin▁of▁sentence｜>### Instruction:
As an educational technologist, I can help you integrate networkx into a classroom scenario. Let's say you're teaching a class on graph theory, and as part of a hands-on activity, you want to demonstrate how to represent a simple undirected graph using networkx. To engage the students, you could ask them to identify the edges in the graph by using real-world examples. For instance, you could ask the class to consider a social network where person A is friends with person B, and person C is friends with person D. After they provide the edges, you can then ask them to use networkx to retrieve and display the adjacency list of the graph. This practical application will not only reinforce their understanding of graphs and adjacency lists but also enhance their computational skills using networkx.
### Response:
from igraph import Graph

# Create a simple undirected graph with edges AB and CD
graph = Graph.Formula('A--B, C--D')

# Get the adjacency list of the graph
adj_list = graph.get_adjlist()

# Print the adjacency list
for index, neighbors in enumerate(adj_list):
    print(f'Vertex {graph.vs[index]['name']} has neighbors: {neighbors}')
<|EOT|>
