MATLAB: How to increase number size above the nodes

bigersizebiggersizedigraphgraphgraph theoryhelpplotsmallnumber

when i plot digraph the nubmers above each node are reaaly small. How to make them bigger in size? are there any special commands i should add? like LineStyle for style of lines?
h = plot(g,'Layout','layered','EdgeLabel',g.Edges.Weight,'LineWidth', 3, 'MarkerSize', 8, 'LineStyle', '--', 'Marker','s')

Best Answer

hs = struct(h); %and ignore the warning message
for nhl = hs.NodeLabelHandles_
nhl.Font.Size = 15;
end
It is possible to hide the warning:
old_warning_state = warning('off', 'MATLAB:structOnObject');
... struct()
warning(old_warning_state);