Make the svg viewport larger, 1200x800, if there are 28 or more vertices in the graph. If fewer it will still be 960x600.