Ask Your Question

standardtrickyness's profile - activity

2018-06-26 16:33:15 -0600 asked a question plantri package not found and installing packages

So I'm getting the plantri package not found error despite plantri appearing in my packages list in sage: pkgs=list_packages(local=True) sorted(pkgs.keys()) sage: sorted(pkgs.keys())
... 'planarity', 'plantri', 'polymake', ... Where do I download the plantri package? Also I get a weird error from running install_package? Object install_package not found.

2018-06-26 16:10:07 -0600 commented answer Output of plantri and graphs.planar_graphs

Thank both, but it doesn't quite answer my question what is the output of plantri and graphs.planar_graphs how come when I use the output as a graph I do not get a plot as usual? and I guess how to get a "graph" from a planar graph in the easiest way possible?

2018-06-25 16:25:30 -0600 received badge  Scholar (source)
2018-05-25 16:08:27 -0600 asked a question Output of plantri and graphs.planar_graphs

I find the documentation of Sage much lacking what is the output of plantri and graphs.planar_graphs?

I assumed the output would be graphs (could not find documentation on this) and did the following

l = graphs.planar_graphs(4, dual=False)    
gen = list(l)       
ii = 1
G = gen[ii] 
p = G.plot()
2018-05-25 10:53:23 -0600 commented answer graphs.planar_graphs

so what is the output of graphs.planar_graphs?

2018-05-24 13:41:00 -0600 commented answer graphs.planar_graphs

Okay thanks I'll have to read up on what a generator is, but what is wrong after I do gen=list(l) G=gen[ii] p=G.plot

2018-05-23 17:10:38 -0600 asked a question graphs.planar_graphs

So I'm a bit confused by the documentation of graphs.planar_graphs I thought it would just generate a list of planar graphs so I don't know why the following code doesn't work (and also why I need to do list(l) )

l = graphs.planar_graphs(4, dual=False)
gen=list(l) #don't know why this is necessary k=len(gen) ii=1 G=gen[ii] p=G.plot()

2018-05-08 02:51:45 -0600 received badge  Good Question (source)
2018-05-07 11:40:05 -0600 received badge  Nice Question (source)
2018-05-07 10:07:37 -0600 asked a question Running sage / cocalc

I don't know if this is the place but I'm confused as to how to run a sage program. I'm told that there's not really a sage editor or whatnot does cocalc allow you to write an entire program and then run it or does it autorun any command entered into it?

2018-05-06 21:54:02 -0600 received badge  Editor (source)
2018-05-06 21:52:09 -0600 asked a question syntax error near unexpected token '('

syntax error near unexpected token '(' when I try to run m = matrix(2) (like on the docs.sagemath page

2018-05-06 20:31:11 -0600 asked a question Generating random matricies with random_matrix

I'm having trouble finding the documentation for random_matrix what distributions are available besides the uniform distribution and what is the range of the uniform distribution?
Sorry if this is obvious but I'm having trouble finding this info in the

2018-05-06 19:36:46 -0600 asked a question Random orientation of a graph

Is there a command to randomly orient a graph? (no additional edges) not the to_directed command

2018-05-04 11:42:03 -0600 asked a question gen = graphs.planar_graphs(4, dual=True) is not working

gen = graphs.planar_graphs(4, dual=True) is not working syntax error near unexpected '(' despite this exact code appearing on the wiki

p.s. is there a way for sage to give me a random planar graph? (rather than a list of all planar graphs)

2018-04-09 16:07:51 -0600 commented question temp22.sobj is not UTF-8 encoded

Okay just do A=Matrix([[0,1],[1,0]]) G=Digraph(A)
I'm not sure what save does or where it get's saved to

2018-04-08 21:32:11 -0600 commented answer Where does save( , '') save to?

Thanks, when I do pwd however it gives me u'/home/h34sun' when my folder path should be C:\Users\h34sun would you happen to know why it does this?

2018-04-06 12:33:52 -0600 asked a question temp22.sobj is not UTF-8 encoded

I get a temp22.sobj is not UTF-8 encoded after trying to open this file I saved by using save(G.allsimplecycles, 'temp22') what am I doing wrong?

2018-04-06 11:12:57 -0600 received badge  Supporter (source)
2018-04-06 10:01:17 -0600 received badge  Student (source)
2018-04-06 09:59:06 -0600 asked a question Where does save( , '') save to?

Sorry if this is a stupid question but where to does save( , '') go to? how do I find the file location?

2017-08-19 10:33:59 -0600 asked a question What is the difference between .sage and .sagesw?

What is the difference between .sage and .sagesw?

I've found that load does not work well with .sagesw why is that?