<｜begin▁of▁sentence｜>### Instruction:
Given an instance of an igraph graph with vertices and edges defined, and while having Gephi with the Graph Streaming plugin running on localhost on port 8080, can you demonstrate how to send individual graph events (such as adding nodes and edges) to the Gephi Graph Streaming plugin using the `GephiGraphStreamer.send_event` method?
### Response:
from igraph import Graph
from igraph.streaming import GephiGraphStreamer

# Assuming we have a running instance of Gephi with the Graph Streaming plugin enabled
streamer = GephiGraphStreamer("http://localhost:8080/workspace0", mode="event")

def send_event_example(graph, streamer):
    for vertex in graph.vs:
        streamer.send_event({"an": {vertex.index: {"label": vertex['label']}}})
    for edge in graph.es:
        streamer.send_event({"ae": {edge.index: {'source': edge.source, 'target': edge.target}}})

# Create a graph
g = Graph.Formula("A--B, C--D")

# Send events to Gephi
send_event_example(g, streamer)
<|EOT|>
