dgleich / matlab-bgl

A graph library for Matlab based on the boost graph library
http://dgleich.github.com/matlab-bgl
110 stars 70 forks source link

Update check_matlab_bgl.m #24

Closed cloudy-sfu closed 3 years ago

cloudy-sfu commented 3 years ago

A suggestion for fixing this issue: https://github.com/dgleich/matlab-bgl/issues/23

dgleich commented 3 years ago

It's actually often quite useful to allow "empty" matrix calls that give back trivial results. For this particular, issue, It think the better thing to do is to special case it in the clustering coefficients function and have it just return zero for an empty matrix.