<｜begin▁of▁sentence｜>### Instruction:
Suppose you have a simple undirected graph with two nodes labeled 'Node 1' and 'Node 2', connected by an edge. You want to visualize this graph in real-time using Gephi through its WebSocket interface. How would you use the GephiGraphStreamer package in Python to create and stream this graph to a running Gephi instance on localhost at port 8080?
### Response:
from gephistreamer import streamer
from gephistreamer.graph import Node, Edge

# Create a streamer that will send data to Gephi
s = streamer.Streamer(streamer.GephiWS(hostname="localhost", port=8080))

# Create a simple graph
n1 = Node("1", label="Node 1")
n2 = Node("2", label="Node 2")
e1 = Edge(n1, n2, directed=False, label="Edge from Node 1 to Node 2")

# Send nodes and edges to Gephi
s.add_node(n1)
s.add_node(n2)
s.add_edge(e1)

print("Graph streamed to Gephi!")
<|EOT|>
