📄 graphloadfromfile.m
字号:
function Graph = GraphLoadFromFile(FileName)
% Loads Graph from Mat-file
%
% Receives:
% FileName - string - the name if the file to store the data to. If the file exists, it is overwritten
%
% Returns:
% Graph - Graph Struct - the graph or empty struct.
%
% Created:
% Lev Muchnik 16/08/2005, Tel.: 972-054-4326496, 89 Beacon, Somerville, MA, USA
error(nargchk(1,1,nargin));
error(nargoutchk(0,1,nargout));
try
if exist(FileName,'file')==2
load(FileName,'Graph','-mat');
if ~ObjectIsType(Graph,'Graph','The operation can only be performed on Graphs')
Graph = [];
end
else
Graph = [];
end
catch
Graph = [];
end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -