R interface: warning when arrow.mode is the same for all edges

Bug #591835 reported by Tamás Nepusz
2
Affects Status Importance Assigned to Milestone
igraph
Fix Released
Low
Gábor Csárdi

Bug Description

This bug was originally reported by David Edwards on the mailing list. The following code reproduces the bug:

em1 <- c(0,1,1,1,1,0,1,1,1,1,0,1,1,1,1,0); dim(em1)<- c(4,4)
iG <- graph.adjacency(em1)
E(iG)$arrow.mode <- 2
E(iG)[is.mutual(iG)]$arrow.mode <- 0
iG$layout <- layout.graphopt
plot(iG)

The bug can be resolved by replacing "code=arrow.mode" with "code=unique(arrow.mode)" in line 225 of plot.R. I'm not sure whether this is the optimal solution, though, so I'm leaving it as a pending bug report for the time being. Gabor, if there is a better solution than this, please commit that to the R interface; otherwise, please commit this.

Tamás Nepusz (ntamas)
Changed in igraph:
importance: Undecided → Low
status: New → Confirmed
assignee: nobody → Gábor Csárdi (gabor.csardi)
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote :

Yes, this is a correct fix, but arrow.mod[1] is very slightly better, I have committed this into 0.6-main (revision #1967).

Changed in igraph:
status: Confirmed → Fix Released
Revision history for this message
Gábor Csárdi (gabor.csardi) wrote : Continue on github

The development of igraph has moved to github, so please do not comment on this bug here. You are of course welcome to comment on github, here:
https://github.com/igraph/igraph/issues/275

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.