added print function

separated edge and node sizes also