<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edge set [(0, 1), (0, 2), (1, 2), (3, 4)], can you format its vertex dendrogram into a JSON object using the VertexDendrogram.format method?
### Response:
from igraph import Graph
from igraph.clustering import VertexDendrogram

# Create a graph
edges = [(0, 1), (0, 2), (1, 2), (3, 4)]
g = Graph(edges=edges)

# Perform hierarchical clustering
dendrogram = g.community_edge_betweenness()
vertex_dendrogram = VertexDendrogram(g, dendrogram)

# Format the dendrogram into a JSON-compatible format
formatted_dendrogram = vertex_dendrogram.format('json')

print(formatted_dendrogram)
<|EOT|>
