Ask Your Question
1

Edge color for undirected multiedge graphs

asked 2017-10-13 16:00:23 +0100

Acksl gravatar image

It seems that there is a bug with specifying the color of undirected multiedges. Here's an example:

G=graphs.PathGraph(2)
G.allow_multiple_edges(True)
G.add_edge((0,1))
G.plot(edge_colors={"red":[(1,0)]})

The graph plotted has then four edges, two black and two red. It seems that the multiedge to be colored red is seen as a different one than the already present one, even though they are actually the same since the graph is undirected. I get the intended plot if I change the last line to:

G.plot(edge_colors={"red":[(0,1)]})
edit retag flag offensive close merge delete

Comments

Thank you for spotting this bug and reporting it. Thanks to David Coudert, this should be fixed in Sage 8.1 when it comes out.

slelievre gravatar imageslelievre ( 2017-10-15 21:11:27 +0100 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2017-10-15 16:07:22 +0100

This is now ticket #24051

edit flag offensive delete link more

Comments

Thank you for opening the ticket and providing a fix!

slelievre gravatar imageslelievre ( 2017-10-15 21:10:23 +0100 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2017-10-13 16:00:23 +0100

Seen: 854 times

Last updated: Oct 13 '17