small change in graph - size should be enough, no need of maxSize..