ASKSAGE: Sage Q&A Forum - RSS feedhttps://ask.sagemath.org/questions/Q&A Forum for SageenCopyright Sage, 2010. Some rights reserved under creative commons license.Wed, 02 Nov 2016 21:09:55 +0100Nauty x SageMathhttps://ask.sagemath.org/question/35312/nauty-x-sagemath/I generated a txt file with all connected graphs (11 vertices) using nauty. I want to upload this file to SageMath cloud and to SageMath notebook (with ubuntu).
In first case, I can't because the size of file is greather than 30mb or something like this and SageMath cloud ask for some special type of upload.
In second case, although SageMath notebook says it is allowed to upload txt files I just can't do it since SageMath notebook says there is some problem with the file. I alreadt generated other txt files using nauty and I am totally sure there is no problem with this,Mon, 31 Oct 2016 12:41:36 +0100https://ask.sagemath.org/question/35312/nauty-x-sagemath/Answer by kcrisman for <p>I generated a txt file with all connected graphs (11 vertices) using nauty. I want to upload this file to SageMath cloud and to SageMath notebook (with ubuntu).</p>
<p>In first case, I can't because the size of file is greather than 30mb or something like this and SageMath cloud ask for some special type of upload.</p>
<p>In second case, although SageMath notebook says it is allowed to upload txt files I just can't do it since SageMath notebook says there is some problem with the file. I alreadt generated other txt files using nauty and I am totally sure there is no problem with this,</p>
https://ask.sagemath.org/question/35312/nauty-x-sagemath/?answer=35316#post-id-35316I don't know about SMC but I assume that you have to be a customer to upload certain big files?
Sage notebook txt files need to be in the format of a Sage worksheet on the "edit" tab, which looks like this:
<p>Powers of diagonalizable matrices! You have to get a pretty high power, but eventually diagonalization <em>is</em> faster.</p>
{{{id=2|
M = matrix(3,[0,1,1,1,0,1,1,1,0])
///
}}}
{{{id=15|
timeit('M^100000')
///
25 loops, best of 3: 9.74 ms per loop
}}}
{{{id=20|
D,P=M.jordan_form(transformation=True); Pinv=P^-1; D = D.change_ring(ZZ)
///
}}}
{{{id=16|
timeit('D,P=M.jordan_form(transformation=True); Pinv=P^-1')
///
25 loops, best of 3: 39.3 ms per loop
}}}
{{{id=19|
timeit('Pinv*D^100000*P')
///
125 loops, best of 3: 1.27 ms per loop
}}}
By the way, you should be able to use nauty inside of Sage now anyway?Mon, 31 Oct 2016 20:28:25 +0100https://ask.sagemath.org/question/35312/nauty-x-sagemath/?answer=35316#post-id-35316Comment by celsomjr for <p>I don't know about SMC but I assume that you have to be a customer to upload certain big files?</p>
<p>Sage notebook txt files need to be in the format of a Sage worksheet on the "edit" tab, which looks like this:</p>
<pre><code><p>Powers of diagonalizable matrices!&nbsp; You have to get a pretty high power, but eventually diagonalization <em>is</em> faster.</p>
{{{id=2|
M = matrix(3,[0,1,1,1,0,1,1,1,0])
///
}}}
{{{id=15|
timeit('M^100000')
///
25 loops, best of 3: 9.74 ms per loop
}}}
{{{id=20|
D,P=M.jordan_form(transformation=True); Pinv=P^-1; D = D.change_ring(ZZ)
///
}}}
{{{id=16|
timeit('D,P=M.jordan_form(transformation=True); Pinv=P^-1')
///
25 loops, best of 3: 39.3 ms per loop
}}}
{{{id=19|
timeit('Pinv*D^100000*P')
///
125 loops, best of 3: 1.27 ms per loop
}}}
</code></pre>
<p>By the way, you should be able to use nauty inside of Sage now anyway?</p>
https://ask.sagemath.org/question/35312/nauty-x-sagemath/?comment=35356#post-id-35356Actually, in sage math cloud there is the message: Currently, each file must be under 30MB; for bigger files, use SSH as explained in project settings. Maybe thatś a stupid think, but I couldn't find what means this SSH.
About sage notebook, Iḿ trying to use nauty inside Sage with command line:
for g in graphs.nauty_geng("11 -c"):
This way I think I'm using nauty to generate connected graphs with 11 vertices and, in the sequence, I'm able to make some research on this. But it looks for me that when I generate the graphs this way it takes more time than when I make this directly in nauty. Does it make sense or it's not possible?
Still about the txt file, if I have the txt file of nauty with connected graphs on 11 vertices, how could I upload this for sage?Wed, 02 Nov 2016 19:36:46 +0100https://ask.sagemath.org/question/35312/nauty-x-sagemath/?comment=35356#post-id-35356Comment by kcrisman for <p>I don't know about SMC but I assume that you have to be a customer to upload certain big files?</p>
<p>Sage notebook txt files need to be in the format of a Sage worksheet on the "edit" tab, which looks like this:</p>
<pre><code><p>Powers of diagonalizable matrices!&nbsp; You have to get a pretty high power, but eventually diagonalization <em>is</em> faster.</p>
{{{id=2|
M = matrix(3,[0,1,1,1,0,1,1,1,0])
///
}}}
{{{id=15|
timeit('M^100000')
///
25 loops, best of 3: 9.74 ms per loop
}}}
{{{id=20|
D,P=M.jordan_form(transformation=True); Pinv=P^-1; D = D.change_ring(ZZ)
///
}}}
{{{id=16|
timeit('D,P=M.jordan_form(transformation=True); Pinv=P^-1')
///
25 loops, best of 3: 39.3 ms per loop
}}}
{{{id=19|
timeit('Pinv*D^100000*P')
///
125 loops, best of 3: 1.27 ms per loop
}}}
</code></pre>
<p>By the way, you should be able to use nauty inside of Sage now anyway?</p>
https://ask.sagemath.org/question/35312/nauty-x-sagemath/?comment=35362#post-id-35362I think there is documentation somewhere about how to access your SMC project using ssh (a terminal-based secure communication protocol) but I am not an expert on the cloud Sage so hopefully someone else will give that information.Wed, 02 Nov 2016 21:09:55 +0100https://ask.sagemath.org/question/35312/nauty-x-sagemath/?comment=35362#post-id-35362