igraph / rigraph

igraph R package
https://r.igraph.org
554 stars 200 forks source link

R: Edge lines are waving in metafiles #78

Closed ko-ichi-h closed 9 years ago

ko-ichi-h commented 9 years ago

With recent versions (0.7.1 and 0.7.0) of igraph R package, I find that edge lines are waving in saved metafiles. Please see the “before” figure of the attached image. igraph2

It can be fixed like the “after” figure by changing the following line in the “igraph.Arrows” function.

if (is.logical(curved) && all(!curved)) {

I changed this line as follows to make the “after” figure.

if ( (is.logical(curved) && all(!curved)) || all(!curved) ) {

BTW, thank you very much for developing such a nice software!

gaborcsardi commented 9 years ago

Well, the real fix would be to draw straight lines instead of Bezier curves for edges with curved=0.

github-actions[bot] commented 8 months ago

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.