[sage-support] creating a graph from a graph with one edge removed

2014-03-12 Thread Ken Levasseur
, if evaluate the following, I also get True c6.is_tree() Removing the edge from p6 also removes it from c6. So p6 and c6 seem to be pointers to the same structure. How do I create a truely new graph out of the original? Ken Levasseur UMass Lowell -- You received this message because you

Re: [sage-support] creating a graph from a graph with one edge removed

2014-03-12 Thread Ken Levasseur
will obtain True, in other words, p6 and c6 are two references to the same object. Using p6=c6.copy() will do the job. Best regards. Christophe BAL 2014-03-12 21:42 GMT+01:00 Ken Levasseur kleva...@mac.com javascript:: I want to examine graphs I get by removing single edges from an initial

[sage-support] Re: missing share links in page with sage cells

2014-02-17 Thread Ken Levasseur
I also converted by hand but hope to put together a script in my spare time. Will let you know if I'm successful in finding the time. Ken -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe from this group and stop receiving emails

[sage-support] missing share links in page with sage cells

2014-02-08 Thread Ken Levasseur
://faculty.uml.edu/klevasseur/ADS2/sage_cell/sage_cell_posets.html The only difference is that I've linked the cells - does that shut off the share feature? Ken Levasseur UMass Lowell -- You received this message because you are subscribed to the Google Groups sage-support group. To unsubscribe

[sage-support] Matrix question

2012-11-26 Thread Ken Levasseur
I'm writing up some notes on matrices for my students and ran into this inconsistency (I think). I start by creating a matrix and augment its transpose, just to have a non-square matrix: A=Matrix([[3,1],[-1,2]]) B=A.transpose() C=A.augment(B) Now if I ask for the echelon form of C, I get this

[sage-support] help needed with Classes

2011-09-21 Thread Ken Levasseur
good, I think. But then the following expressions all fail: z.domain() z.operation() z.display() I must be missing something. Any help? Ken Levasseur UMass Lowell -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support

[sage-support] Re: help needed with Classes

2011-09-21 Thread Ken Levasseur
Thanks for the prompt tips. They were perfect! Ken -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support

[sage-support] Re: setting default option values in show

2011-09-05 Thread Ken Levasseur
On Sep 5, 9:00 am, kcrisman kcris...@gmail.com wrote: For many plot things there are also dictionaries you can set with options like this, but it doesn't look like this is the case for graph plots.  There is a dictionary *listing* the options!  But it doesn't seem to come with a global

[sage-support] setting default option values in show

2011-09-04 Thread Ken Levasseur
? example=Poset({0:[2],1:[2],2:[3],3:[]}) example.show(vertex_colors='orange') Ken Levasseur UMass Lowell http://faculty.uml.edu/klevasseur/ads2 -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr

[sage-support] unanticipated divison by zero

2011-06-22 Thread Ken Levasseur
integer_mod.pyx, line 2223, in sage.rings.finite_rings.integer_mod.IntegerMod_int._div_ (sage/rings/ finite_rings/integer_mod.c:19173) ZeroDivisionError: Inverse does not exist. Ken Levasseur UMass Lowell -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: unanticipated divison by zero

2011-06-22 Thread Ken Levasseur
On Jun 22, 4:06 pm, Robert Bradshaw rober...@math.washington.edu wrote: What is startingA ? What is the parent of A? The full .sws file is at http://homepage.mac.com/klevasseur/sum_of_squares.sws Ken -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from

[sage-support] Re: unanticipated divison by zero

2011-06-22 Thread Ken Levasseur
to find a way to get the power modulo p without actually making the thing an integer mod p. Hope this helps! - kcrisman On Jun 22, 7:43 pm, Ken Levasseur klevass...@mac.com wrote: On Jun 22, 4:06 pm, Robert Bradshaw rober...@math.washington.edu wrote: What is startingA ? What

[sage-support] tab on an iPad

2010-08-23 Thread Ken Levasseur
to that? Ken Levasseur UMass Lowell -- To post to this group, send email to sage-support@googlegroups.com To unsubscribe from this group, send email to sage-support+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-support URL: http://www.sagemath.org

[sage-support] interact problem

2010-01-03 Thread Ken Levasseur
I've been trying to get an interaction running with the interact function but even the simplest ones don't run as expected on my version of Sage ('Sage Version 4.2.1, Release Date: 2009-11-14'). Sage is running on my MacBook Pro (w/ OSX 10.6.2). For example, if I evaluate @interact def