MATLAB: Example of MatLab code that can read XGMML (.gr.gz) extension file

.gr.gzexamplegraphxgmml

I have a file in XGMML format (USA-road-d.BAY.gr.gz). But, I do not know how to make MatLab can read such an extension file. I want to know if anyone has any MatLab code, just for example, that can read the same extension file or is it possible Matlab can recognize it? big thanks

Best Answer

This file appears to be a text file which gzip compressed.
You can extract the file with function gunzip and then perhaps load it with readtable.
a = gunzip('USA-road-d.BAY.gr.gz');
t = readtable(a{1},'FileType','text','NumHeaderLines',7);
Related Question