ASKSAGE: Sage Q&A Forum - Individual question feedhttp://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Tue, 14 Mar 2017 03:08:11 -0500Mixed graphhttp://ask.sagemath.org/question/36938/mixed-graph/ Can we draw mixed graphs( graphs with some edges oriented while some are not) in sagemath?
Mon, 13 Mar 2017 23:16:39 -0500http://ask.sagemath.org/question/36938/mixed-graph/Answer by tmonteil for <p>Can we draw mixed graphs( graphs with some edges oriented while some are not) in sagemath?</p>
http://ask.sagemath.org/question/36938/mixed-graph/?answer=36939#post-id-36939I 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.
Tue, 14 Mar 2017 02:26:12 -0500http://ask.sagemath.org/question/36938/mixed-graph/?answer=36939#post-id-36939Comment by Deepak Sarma for <p>I am not sure about your motivation, but a possibility is to use oriented graphs, and put edges from both <code>a</code> to <code>b</code> and <code>b</code> to <code>a</code> when you want to consider <code>(a,b)</code> as a non-oriented edge. This double-edge construction is classical to define non-oriented graphs.</p>
http://ask.sagemath.org/question/36938/mixed-graph/?comment=36941#post-id-36941Yes 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.Tue, 14 Mar 2017 03:08:11 -0500http://ask.sagemath.org/question/36938/mixed-graph/?comment=36941#post-id-36941