MATLAB: How to change font size of bus number in graph

font sizegraph theory

I have this graph
M=[1,2;3,4;4,1;2,3]
g = graph(M(:, 1), M(:, 2));
h = plot(g);
I have attached the graph here and want to change font of bus number.

Best Answer

This answer can fullfill your requirement
In your case
M=[1,2;3,4;4,1;2,3]
g = graph(M(:, 1), M(:, 2));
h = plot(g, 'NodeLabe', {});
t = text(h.XData,h.YData,{'1','2','3','4'},'FontSize',14);