|
1234567891011121314151617181920212223242526272829 |
- clear;
- clc;
-
- %datasetDir = 'D:/SocialNets/Steam/Exp_June13/Test/' ; % sigal 18.11.12
- datasetDir = 'D:/SocialNets/DataSets5/FF50c_Steam_GM2_GR2_60/Test_250K/';
- filePrefix = 'Steam*_';
- netSizes = [50000 75000 100000]; %[2048 4096 8192 10000 16384 25000 32768]; %[1000 2000 2048 4096]; % 5000 8192 10000 16384]; % 20000 25000 32768 50000];
- debug = 0;
-
- % convert ascii graph to .mat data graph
- fprintf('Start prepareDataSet ...\n');
-
- for nodes = netSizes
- prefix = sprintf('%s%s%d_%s',datasetDir,filePrefix,nodes,'*.usr.txt');
- files = [dir(prefix)];
- for i = 1:size(files,1)
- file = files(i).name;
- %usrFile = strfind(file, '.usr');
- matFile = strfind(file, '.mat');
- if isempty(matFile) %isempty(usrFile)
- fprintf('dataSet %s ...\n',file);
- attributes = LoadAsciiAttributes(datasetDir, file, nodes, debug);
- attFile = strrep(file, '.usr.txt', '.usr.mat');
- save(strcat(datasetDir,'matFormat/',attFile), 'attributes');
- end
- end
- end
-
- fprintf('Completed Run.\n');
|