€csage.server.notebook.notebook Notebook q)q}q(U_Notebook__worksheetsq}qU _scratch_q(csage.server.notebook.worksheet Worksheet qoq}q (U_Worksheet__filenameq U _scratch_q U_Worksheet__cellsq ]q ((csage.server.notebook.cell Cell qoq}q(U _Cell__inqU import numpyqU_Cell__introspect_htmlqU!
qU_Cell__worksheetqhU_Cell__completionsq‰U_Cell__introspectq‰U_Cell__out_htmlqUU	_Cell__idqK
U_Cell__is_htmlq‰U_before_preparseqUios.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/13")
import numpyqU
_Cell__dirqU+sage_notebook/worksheets/_scratch_/cells/13qU
_Cell__outqU

q Uhas_new_outputq!‰U_Cell__sageq"csage.interfaces.sage0
reduce_load_Sage
q#)Rq$U_Cell__versionq%KU_Cell__typeq&Uwrapq'U_Cell__timeq(‰U_Cell__interruptedq)‰ub(hoq*}q+(hU
numpy.random.q,hTA:q-hhh‰h]q.(h,UehUhKh‰hUjos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/14")
numpy.random.q/U_word_being_completedq0h,hU+sage_notebook/worksheets/_scratch_/cells/14q1hUh!‰h%Kh&h'h(‰h)‰ub(hoq2}q3(hUP = graphs.CompleteGraph(5)q4hU!
q5hhh‰h‰hUhKh‰hUwos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/0")
P = graphs.CompleteGraph(5)q6h0Ugraphs.CompleteGq7hU*sage_notebook/worksheets/_scratch_/cells/0q8hU

q9h!‰h"h$h%Kh&h'h(‰h)‰ub(hoq:}q;(hU2+2qq=hhh‰h‰hUhKh‰hU`os.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/12")
2+2q>hU+sage_notebook/worksheets/_scratch_/cells/12q?hU
4

q@h!‰h"h$h%Kh&h'h(‰h)‰ub(hoqA}qB(hUP.save('P')qChU!
qDhhh‰h‰hUhK
h‰hUhos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/10")
P.save('P')qEhU+sage_notebook/worksheets/_scratch_/cells/10qFhU

qGh!‰h"h$h%Kh&h'h(‰h)‰ub(hoqH}qI(hU	load('P')qJhU!
qKhhh‰h‰hUhKh‰hUfos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/11")
load('P')qLhU+sage_notebook/worksheets/_scratch_/cells/11qMhU0
Petersen graph: a simple graph on 10 vertices

qNh!‰h"h$h%Kh&h'h(‰h)‰ub(hoqO}qP(hUtype(P)qQhU!
qRhhh‰h‰hUhKh‰hUcos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/1")
type(P)qShU*sage_notebook/worksheets/_scratch_/cells/1qThU$


qUh!‰h"h$h%Kh&h'h(‰h)‰ub(hoqV}qW(hUPhU!
qXhhh‰h‰hUhKh‰hU]os.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/2")
PqYhU*sage_notebook/worksheets/_scratch_/cells/2qZhU0
Petersen graph: a simple graph on 10 vertices

q[h!‰h"h$h%Kh&h'h(‰h)‰ub(hoq\}q](hUshow(P)q^hU!
q_hhh‰h‰hUBq`hKh‰hUcos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/3")
show(P)qahU*sage_notebook/worksheets/_scratch_/cells/3qbhU

qch!‰h"h$h%Kh&h'h(‰h)‰ub(hoqd}qe(hU&for x in P.edge_iterator():
   print xqfhU!
qghhh‰h‰hUhKh‰hU‚os.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/4")
for x in P.edge_iterator():
   print xqhh0U	P.edge_itqihU*sage_notebook/worksheets/_scratch_/cells/4qjhUk
(0, 1)
(0, 4)
(0, 5)
(1, 2)
(1, 6)
(2, 3)
(2, 7)
(3, 8)
(3, 4)
(4, 9)
(5, 8)
(5, 7)
(6, 8)
(6, 9)
(7, 9)

qkh!‰h"h$h%Kh&h'h(‰h)‰ub(hoql}qm(hUimport networkx as NXqnhU!
qohhh‰h‰hUhKh‰hUqos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/5")
import networkx as NXqphU*sage_notebook/worksheets/_scratch_/cells/5qqhU

qrh!‰h"h$h%Kh&h'h(‰h)‰ub(hoqs}qt(hUk = NX.krackhardt_kite_graph()quhU!
qvhhh‰h‰hUhKh‰hUzos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/6")
k = NX.krackhardt_kite_graph()qwh0UNX.qxhU*sage_notebook/worksheets/_scratch_/cells/6qyhU

qzh!‰h"h$h%Kh&h'h(‰h)‰ub(hoq{}q|(hUNX.shortest_path(k, 0, 5)q}hU!
q~hhh‰h‰hUhKh‰hUuos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/7")
NX.shortest_path(k, 0, 5)qh0UNX.q€hU*sage_notebook/worksheets/_scratch_/cells/7qhU	
[0, 5]

q‚h!‰h"h$h%Kh&h'h(‰h)‰ub(hoqƒ}q„(hUgraphs.q…hT—	q†hhh‰h]q‡(h…UehUhK	h‰hUcos.chdir("/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/worksheets/_scratch_/cells/9")
graphs.qˆh0h…hU*sage_notebook/worksheets/_scratch_/cells/9q‰hUh!‰h%Kh&h'h(‰h)‰ubeU_Worksheet__synchroqŠK$U_Worksheet__comp_is_runningq‹‰U_Worksheet__dirqŒU"sage_notebook/worksheets/_scratch_qU_Worksheet__attachedqŽ}qU_Worksheet__passcodeqU
11G3BJNEUV/Pkq‘U_Worksheet__queueq’]q“U_Worksheet__next_idq”KU_Worksheet__passcryptq•ˆU_Worksheet__nameq–U	_scratch_q—U_Worksheet__saltq˜U1165257091.996930q™U_Worksheet__notebookqšhU_Worksheet__next_block_idq›K%U_Worksheet__idqœKU_Worksheet__systemqNubsU_Notebook__historyqž]qŸ(UO# Worksheet '_scratch_' (2006-12-04 at 10:32)
sage: P = graphs.PetersenGraph()
q U]# Worksheet '_scratch_' (2006-12-04 at 10:32)
sage: type(P)
q¡Uc# Worksheet '_scratch_' (2006-12-04 at 10:32)
sage: P
Petersen graph: a simple graph on 10 verticesq¢U<# Worksheet '_scratch_' (2006-12-04 at 10:32)
sage: show(P)
q£UÆ# Worksheet '_scratch_' (2006-12-04 at 10:33)
sage: for x in P.edge_iterator():
...   print x
(0, 1)
(0, 4)
(0, 5)
(1, 2)
(1, 6)
(2, 3)
(2, 7)
(3, 8)
(3, 4)
(4, 9)
(5, 8)
(5, 7)
(6, 8)
(6, 9)
(7, 9)q¤UJ# Worksheet '_scratch_' (2006-12-04 at 10:33)
sage: import networkx as NX
q¥US# Worksheet '_scratch_' (2006-12-04 at 10:33)
sage: k = NX.krackhardt_kite_graph()
q¦U­# Worksheet '_scratch_' (2006-12-04 at 10:34)
sage: NX.shortest_path(k)
Traceback (most recent call last):
...
TypeError: shortest_path() takes exactly 3 arguments (1 given)q§UW# Worksheet '_scratch_' (2006-12-04 at 10:34)
sage: NX.shortest_path(k, 0, 4)
[0, 1, 4]q¨UT# Worksheet '_scratch_' (2006-12-04 at 10:34)
sage: NX.shortest_path(k, 0, 5)
[0, 5]q©U†# Worksheet '_scratch_' (2006-12-04 at 10:34)
sage: show(k)
\text{Krackhardt Kite Social Network}
qªUT# Worksheet '_scratch_' (2006-12-04 at 10:34) sage: NX.shortest_path(k, 0, 5) [0, 5]q«U@# Worksheet '_scratch_' (2006-12-04 at 10:36) sage: P.save('P') q¬Uk# Worksheet '_scratch_' (2006-12-04 at 10:36) sage: load('P') Petersen graph: a simple graph on 10 verticesq­U¸# Worksheet '_scratch_' (2006-12-04 at 11:04) sage: P = graphs.CompleteGraph(3,10) Traceback (most recent call last): ... TypeError: CompleteGraph() takes exactly 2 arguments (3 given)q®UP# Worksheet '_scratch_' (2006-12-04 at 11:04) sage: P = graphs.CompleteGraph(5) q¯U9# Worksheet '_scratch_' (2006-12-04 at 11:04) sage: 2+2 4q°UA# Worksheet '_scratch_' (2006-12-04 at 11:06) sage: import numpy q±eU_Notebook__defaultsq²}q³(Ucell_output_colorq´U#0000EEqµUmax_history_lengthq¶MôUcell_input_colorq·U#0000000q¸Uword_wrap_colsq¹KPuU_Notebook__default_worksheetqºhU_Notebook__history_countq»KU_Notebook__worksheet_dirq¼Usage_notebook/worksheetsq½U_Notebook__log_serverq¾‰U_Notebook__filenameq¿Usage_notebook/nb.sobjqÀU_Notebook__server_logqÁ]qÂU_Notebook__next_worksheet_idqÃKU_Notebook__kill_idleqÄKU_Notebook__systemqÅNU_Notebook__show_debugqƉU_Notebook__dirqÇU sage_notebookqÈU_Notebook__authqÉU:U_Notebook__colorqÊNU_Notebook__object_dirqËUsage_notebook/objectsqÌU_default_filenameqÍU:/Volumes/HOME/talks/2006-12-waterloo/sage_notebook/nb.sobjqÎU_Notebook__splashpageqωub.