MATLAB: Graphshortestpath function visiting all nodes

graphgraph theorygraphshortestpathpath

Hi,
Is there a way I can manipulate this function in order to force the path include all nodes? I mean, how can I change the code in order to include each node to find the shortest path , but with the constrain that we must visit all nodes?
Thank you in advance