1function plotTaskGraph(self, method)
2% PLOTTASKGRAPH(SELF, METHOD)
4% METHOD:
nodes, names or ids
6% Copyright (c) 2012-2026, Imperial College London
9if nargin<2 %~exist(
'useNodes',
'var')
14T = zeros(lqn.nhosts+lqn.ntasks);
17 for tidx=lqn.tasksof{h}
22 tidx = lqn.tshift + t;
23 [calling_idx, called_entries] = find(lqn.iscaller(:, lqn.entriesof{tidx})); %#ok<ASGLU>
24 callers = intersect(lqn.tshift+(1:lqn.ntasks), unique(calling_idx)
');
30 plot(digraph(T),'Layout
','layered
','NodeLabel
',{lqn.hashnames{1:(lqn.nhosts+lqn.ntasks)}});
32 plot(digraph(T),'Layout
','layered
','NodeLabel
',{lqn.names{1:(lqn.nhosts+lqn.ntasks)}});
34 plot(digraph(T),'Layout
','layered
');