I am trying to use the command, [TR,D,E]= shortestpathtree(G,1,'all','Method','positive','OutputForm','tree'), where G specifies a directed weighted graph without self-loop. I am getting the following message "Error using digraph/shortestpathtree Too many output arguments." If I remove E ( which is a logical vector indicating whether each edge is in TR.) from the output, it works fine. Could you please suggest the correct way to use E in the output?
MATLAB: How to use logical vector E in the output of shortestpathtree command
MATLABshortestpathtree
Best Answer