"if empty graph is input, now returns true 0-by-1 empty matrix"