<｜begin▁of▁sentence｜>### Instruction:
Given a graph with the edge set [(0,1), (0,2), (1,2), (2,3)], can you use the harmonic_centrality function in igraph to calculate the harmonic centralities of all vertices in the graph and print them?
### Response:
from igraph import Graph

# Define the edges for the graph
edges=[(0,1), (0,2), (1,2), (2,3)]

# Create the graph with the defined edges
g = Graph(edges=edges)

# Calculate the harmonic centralities of all vertices
harmonic_centralities = g.harmonic_centrality()

# Print the harmonic centralities
print(harmonic_centralities)
<|EOT|>
