[sage-support] Re: Plotting multiedge Graphs

2009-01-16 Thread Vincent D
The code is in devel/sage/sage/graphs/graph.py The problematic line is just this one (line 5490 in devel/sage/sage/ graphs/graph.py) : for u, v, _ in self.edge_iterator() : if u != v : p += arrow((pos[u][0], pos[u][1]), (pos[v][0], pos[v][1]), **edge_style) I will try to fix it for

[sage-support] Where is the "is_strongly_connected" for DiGraph ?

2009-01-16 Thread Vincent D
Hello, I'm working on directed graphs. So sage : G = DiGraph() ... and I want to know if my graph G is strongly connected. There is such a method in networkx but it seems that this features disappear in SAGE (?). Moreover, there is a method strongly_connected_components which return the decompo

[sage-support] Re: Where is the "is_strongly_connected" for DiGraph ?

2009-01-16 Thread Vincent D
the real function I wrote is more : def is_strongly_connected(G) : if len(G.vertices) == 0 : return True return len(G.strongly_connected_components()) == 1 It is really not the same ! On 16 jan, 09:34, Vincent D <20100.delecr...@gmail.com> wrote: > Hello, > > I'm working on directed gra

[sage-support] Re: Where is the "is_strongly_connected" for DiGraph ?

2009-01-16 Thread Robert Bradshaw
On Jan 16, 2009, at 12:34 AM, Vincent D wrote: > Hello, > > > I'm working on directed graphs. So > sage : G = DiGraph() > ... > > and I want to know if my graph G is strongly connected. There is such > a method in networkx but it seems that this features disappear in SAGE > (?). Moreover, there i

[sage-support] Re: filling area between plots

2009-01-16 Thread Fabio Tonti
Probably it's a silly question, but I get this output when trying to apply the patch. Do I need to create a mercurial repository or fetch something else first? Fabio ** sage: hg_sage.import_patch("./fill_plot.patch") WARNING: Make sure to create a ~/.hgrc

[sage-support] Re: filling area between plots

2009-01-16 Thread Mike Hansen
Hello, On Fri, Jan 16, 2009 at 2:26 AM, Fabio Tonti wrote: > Probably it's a silly question, but I get this output when trying to apply > the patch. Do I need to create a mercurial repository or fetch something > else first? ... > cd "/home/fabio/programs/source/sage-3.2.1/devel/sage" && hg im

[sage-support] Re: filling area between plots

2009-01-16 Thread Fabio Tonti
Wow, thanks. I should have thought about that. The fill-feature really works great! Thank you. Cheers, Fabio On Fri, Jan 16, 2009 at 11:40 AM, Mike Hansen wrote: > > Hello, > > On Fri, Jan 16, 2009 at 2:26 AM, Fabio Tonti wrote: > > Probably it's a silly question, but I get this output when tr

[sage-support] Re: Having difficulty using polyfit function

2009-01-16 Thread Harald Schilly
Hello, i've updated my published worksheet from above. To clearify this, the polyfit is actually numpy's and the glm (generalized linear model) is from R. Sage just enables you to use both of them (more or less seamless). I don't know any chemical problems, i've just some background in experimenta

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Marshall Hampton
We do have ticket #1483, http://trac.sagemath.org/sage_trac/ticket/1483, which could be warped into adding support for ffmpeg. I am also interested in learning how to use javascript to do it but my javascript skills are still too low. One of my goals for this year is to become much better at jav

[sage-support] Does Publish update?

2009-01-16 Thread kcrisman
Dear Support, Brief question - if I Publish something, and then change the worksheet and publish again, does it update the Published worksheet or create a new Published worksheet? I hope the former is true... Thanks, - kcrisman --~--~-~--~~~---~--~~ To post to th

[sage-support] Re: Does Publish update?

2009-01-16 Thread William Stein
On Fri, Jan 16, 2009 at 7:36 AM, kcrisman wrote: > > Dear Support, > > Brief question - if I Publish something, and then change the worksheet > and publish again, does it update the Published worksheet or create a > new Published worksheet? I hope the former is true... Update. If it doesn't, t

[sage-support] Re: Does Publish update?

2009-01-16 Thread kcrisman
> You could easily tell the answer to your question by simply trying, > right?  So I'm guessing you did, and the result wasn't what you > expected, otherwise you wouldn't have asked the question.  Thus maybe > there is a bug?  Can you clarify? I am ashamed to admit that I didn't want to clutter

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Carl Witty
On Jan 15, 10:52 pm, "Justin C. Walker" wrote: > If the temp files are truly temp files (i.e., not of interest when the   > process that creates them exits), then there are Python calls that   > help: the temp files can be created and unlinked, so that at exit,   > they vanish.  In fact, they are

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread mabshoff
On Jan 16, 9:36 am, Carl Witty wrote: > On Jan 15, 10:52 pm, "Justin C. Walker" wrote: Hi, > > If the temp files are truly temp files (i.e., not of interest when the   > > process that creates them exits), then there are Python calls that   > > help: the temp files can be created and unlinke

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Justin C. Walker
On Jan 16, 2009, at 9:36 AM, Carl Witty wrote: > > On Jan 15, 10:52 pm, "Justin C. Walker" wrote: >> If the temp files are truly temp files (i.e., not of interest when >> the >> process that creates them exits), then there are Python calls that >> help: the temp files can be created and unlin

[sage-support] Re: question about visualization/animation of surfaces

2009-01-16 Thread Justin C. Walker
On Jan 16, 2009, at 9:40 AM, mabshoff wrote: > > > > On Jan 16, 9:36 am, Carl Witty wrote: >> On Jan 15, 10:52 pm, "Justin C. Walker" wrote: > > Hi, > >>> If the temp files are truly temp files (i.e., not of interest >>> when the >>> process that creates them exits), then there are Python ca

[sage-support] What is the effect of "edge_labels=True" on is_isomorphic?

2009-01-16 Thread Nikos Apostolakis
Hello, After reading the doc string of "is_isomorphic" I thought that for two edge-labelled graphs g,h, g.is_isomorphic(h, edge_labels=True) would be true exactly when there is a label preserving isomorphism between the two graphs. However: sage: foo.edges() [(0, 1, 2), (0, 2, 1), (2, 3, 3)

[sage-support] Re: What is the effect of "edge_labels=True" on is_isomorphic?

2009-01-16 Thread Nathan Carter
> > sage: foo.edges() > [(0, 1, 2), (0, 2, 1), (2, 3, 3)] > sage: bar.edges() > [(0, 1, 1), (0, 2, 2), (2, 3, 3)] > sage: bar.is_isomorphic(foo, edge_labels = True) > True I think there is a label-preserving isomorphism here, isn't there? 0->0 1->2 2->1 3->3 Nathan --~--~-~--

[sage-support] Re: What is the effect of "edge_labels=True" on is_isomorphic?

2009-01-16 Thread Nikos Apostolakis
Nathan Carter writes: >> >> sage: foo.edges() >> [(0, 1, 2), (0, 2, 1), (2, 3, 3)] >> sage: bar.edges() >> [(0, 1, 1), (0, 2, 2), (2, 3, 3)] >> sage: bar.is_isomorphic(foo, edge_labels = True) >> True > > I think there is a label-preserving isomorphism here, isn't there? > > 0->0 1->2 2-

[sage-support] Re: What is the effect of "edge_labels=True" on is_isomorphic?

2009-01-16 Thread Robert Miller
> BTW, shouldn't the generator of the automorphism group be presented > as "(0,2)(1,3)"? Good luck ever convincing the right systems that this should happen: GAP's permutation groups don't allow you to permute on the letter 0. See the translation option of automorphism_group on that... This has b

[sage-support] Re: What is the effect of "edge_labels=True" on is_isomorphic?

2009-01-16 Thread Nikos Apostolakis
Robert Miller writes: >> BTW, shouldn't the generator of the automorphism group be presented >> as "(0,2)(1,3)"? > > Good luck ever convincing the right systems that this should happen: > GAP's permutation groups don't allow you to permute on the letter 0. > See the translation option of automor

[sage-support] Re: SAGE server

2009-01-16 Thread Nathan Carter
I've been attempting to answer my own questions here by Googling around, and I must admit that this is a highly frustrating experience. I have rather extensive computer experience and I'm finding a SAGE server maddening to set up. Do normal mathematicians find this easy and I'm just being boneh

[sage-support] Re: SAGE server

2009-01-16 Thread Nathan Carter
Well, I guess I'll answer my own question, especially since I'm feeling rather like a moron. I Googled like crazy when what I should just have done was read the manual. D'oh. http://www.sagemath.org/doc/inst/node8.html http://www.sagemath.org/doc/inst/node10.html Nathan On Jan 16, 9:18 pm,

[sage-support] Re: SAGE server

2009-01-16 Thread Robert Bradshaw
Nathan, I'm sorry to hear of your frustration. We've tried to make it easy, in fact everyone who uses Sage via the notebook interface starts up a Sage server. The issue here is that giving someone a Sage notebook account is basically giving them shell access--something you wouldn't want t

[sage-support] Re: SAGE server

2009-01-16 Thread Jason Grout
Robert Bradshaw wrote: > Nathan, > > I'm sorry to hear of your frustration. We've tried to make it easy, > in fact everyone who uses Sage via the notebook interface starts up a > Sage server. The issue here is that giving someone a Sage notebook > account is basically giving them shell acce

[sage-support] Re: SAGE server

2009-01-16 Thread Nathan Carter
> I can also post up my virtualbox image, for those interested. If you did, then the only thing left to do for the rest of us is the port-forwarding calls and a call to start up VirtualBox? That seems like an astonishingly easy solution--even better than the, um, [insert embarrassed pause

[sage-support] Re: SAGE server

2009-01-16 Thread Jason Grout
Nathan Carter wrote: > > Well, I guess I'll answer my own question, especially since I'm > feeling rather like a moron. I Googled like crazy when what I should > just have done was read the manual. D'oh. > > http://www.sagemath.org/doc/inst/node8.html > http://www.sagemath.org/doc/inst/node10.

[sage-support] Re: SAGE server

2009-01-16 Thread Jason Grout
Nathan Carter wrote: > >> I can also post up my virtualbox image, for those interested. > > If you did, then the only thing left to do for the rest of us is the > port-forwarding calls and a call to start up VirtualBox? That seems > like an astonishingly easy solution--even better than the,

[sage-support] Re: Plotting multiedge Graphs

2009-01-16 Thread leeclarks...@gmail.com
Vincent, it seems that you are looking at the wrong section of the code. The line you referenced is specific to drawing directed graphs, and unfortunately in the current version (3.2.3) we are still using a direct call to NetworkX for the basic graph drawing. This call needs to be overwritten, a

[sage-support] Re: Maple in Sage on Mac

2009-01-16 Thread Andrey Novoseltsev
> This is a known bug: > > http://trac.sagemath.org/sage_trac/ticket/2120 > > I hope it gets looked at again at Sage Days next week (which is a week > of developers fixing bugs). > I will be really glad if this happens! Andrey --~--~-~--~~~---~--~~ To post to thi

[sage-support] Re: SAGE server

2009-01-16 Thread William Stein
On Fri, Jan 16, 2009 at 6:54 PM, Jason Grout wrote: > > Nathan Carter wrote: >> >> Well, I guess I'll answer my own question, especially since I'm >> feeling rather like a moron. I Googled like crazy when what I should >> just have done was read the manual. D'oh. >> >> http://www.sagemath.org/d

[sage-support] Re: Plotting multiedge Graphs

2009-01-16 Thread Jason Grout
leeclarks...@gmail.com wrote: > Vincent, it seems that you are looking at the wrong section of the > code. The line you referenced is specific to drawing directed graphs, > and unfortunately in the current version (3.2.3) we are still using a > direct call to NetworkX for the basic graph drawing.

[sage-support] cokernel of a matrix (and other questions about matrices and free modules)

2009-01-16 Thread John H Palmieri
1. How can I compute the cokernel of a matrix? For example: sage: mat = matrix(ZZ, 2, 2, [[1, 0], [0, 2]]) sage: M = FreeModule(ZZ, rank=2) Then I would like to use M / mat.image() or M / mat.column_module(), but those give errors. (It works if M and mat are defined over QQ, and perhaps over any

[sage-support] Re: cokernel of a matrix (and other questions about matrices and free modules)

2009-01-16 Thread William Stein
On Fri, Jan 16, 2009 at 9:22 PM, John H Palmieri wrote: > > 1. How can I compute the cokernel of a matrix? For example: > > sage: mat = matrix(ZZ, 2, 2, [[1, 0], [0, 2]]) > sage: M = FreeModule(ZZ, rank=2) > > Then I would like to use M / mat.image() or M / mat.column_module(), > but those give e