        W = [2 5 6 3 4 1 0];
DG = sparse([1 1 2 2 3 3 4],[2 3 3 4 2 4 4],W)

h = view(biograph(DG,[],'ShowWeights','on'))
[dist,path,pred] = graphshortestpath(DG,1,4)

set(h.Nodes(path),'Color',[1 0.8 0.5])
edges = getedgesbynodeid(h,get(h.Nodes(path),'ID'));
set(edges,'LineColor',[1 0 0])
set(edges,'LineWidth',1.5)

