[Test] test the printDegreeDist() in flexible.h