MATLAB: Coloring node and edge of a graph

graphMATLAB

I have a graph with values assigned to nodes and edges,
t = 1:4;
h = 2:5;
g = graph(t,h);
plot(g)
g.Edges.value = [10; 20; 20; 100];
g.Nodes.value = [0.3; 0.564; 12; 1; 0.005];
I would like to know whether there is an option of coloring the nodes and edges based on the values.

Best Answer

The highlight function is one way to do this. Check out the examples on this page.
Related Question