Ask Your Question
0

Mixed graph

asked 2017-03-14 05:16:39 +0200

Deepak Sarma gravatar image

updated 2017-07-31 22:05:26 +0200

FrédéricC gravatar image

Can we draw mixed graphs( graphs with some edges oriented while some are not) in sagemath?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2017-03-14 08:26:12 +0200

tmonteil gravatar image

I am not sure about your motivation, but a possibility is to use oriented graphs, and put edges from both a to b and b to a when you want to consider (a,b) as a non-oriented edge. This double-edge construction is classical to define non-oriented graphs.

edit flag offensive delete link more

Comments

Yes I know that. But I need the diagrams as mixed graph. I need for several purposes. For example I need to print a mixed graph(with some edges without orientation), want its latex commands. Of course I need some operations on mixed graphs, that I had already done using the method you have mentioned.

Deepak Sarma gravatar imageDeepak Sarma ( 2017-03-14 09:08:11 +0200 )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

Stats

Asked: 2017-03-14 05:16:39 +0200

Seen: 325 times

Last updated: Mar 14 '17