MATLAB: How to remove the default transparency of graph edges

edgegraphgraph theorytransparency

How can I remove the default transparency of graph edges? (I would like bright and clear lines/edges)
Here an example, where edges are a bit transparent:
s = [1 1 2 2 3 4 4 5 5 6 7 7 8 8 9 10 11];
t = [2 4 3 5 6 5 7 6 8 9 8 10 9 11 12 11 12];
weights = [1 5 1 5 5 1 5 1 5 5 1 5 1 5 5 1 1];
G = graph(s,t,weights);
P = plot(G,'LineWidth',G.Edges.Weight);

Best Answer

set(P,'EdgeAlpha',1);