<｜begin▁of▁sentence｜>### Instruction:
Given a time series data [3, 5, 1, 6, 4], can you create and display the edges of the visibility graph using the visibility_graph function from the NetworkX library?
### Response:
import networkx as nx

# Time series data
series = [3, 5, 1, 6, 4]

# Create a visibility graph from the time series
G = nx.visibility_graph(series)

# Print the edges of the graph
print(list(G.edges()))
<|EOT|>
