Skip to content

Commit 29ae05c

Browse files
committed
03_example_graphs.ipynb: Whitespace cleanup
Accidental result of running `nbdev_update_lib`, but nevertheless good change.
1 parent 42f7a61 commit 29ae05c

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

03_example_graphs.ipynb

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
"#export\n",
9898
"def crown_DAG():\n",
9999
" \"\"\"Returns crown DAG known as S_3^0 graph\n",
100-
" \n",
100+
"\n",
101101
" Returns\n",
102102
" -------\n",
103103
" graph : networkx.DiGraph\n",
@@ -106,7 +106,7 @@
106106
" DG=nx.DiGraph()\n",
107107
" DG.add_nodes_from([1,2,3,4,'u','v'])\n",
108108
" DG.add_edges_from([(1,2),(3,4),(1,'v'),(3,'v'),('u',2),('u',4)])\n",
109-
" return DG\n"
109+
" return DG"
110110
]
111111
},
112112
{
@@ -301,7 +301,7 @@
301301
"#export\n",
302302
"def small_DAG_FELINE():\n",
303303
" \"\"\"Create small DAG (example in Figure 2 in FELINE paper)\n",
304-
" \n",
304+
"\n",
305305
" Returns\n",
306306
" -------\n",
307307
" graph : networkx.DiGraph\n",
@@ -310,7 +310,7 @@
310310
" sd=nx.DiGraph()\n",
311311
" sd.add_nodes_from([chr(c) for c in range(ord('a'),ord('h')+1)])\n",
312312
" sd.add_edges_from([('a','c'),('a','d'),('a','e'),('b','f'),('b','g'),('c','h'),('e','h'),('f','h')])\n",
313-
" return sd\n"
313+
" return sd"
314314
]
315315
},
316316
{
@@ -502,22 +502,22 @@
502502
"#export\n",
503503
"def tree_DAG():\n",
504504
" \"\"\"Create tree DAG ('didactic example' in Figure 6 in FELINE paper)\n",
505-
" \n",
505+
"\n",
506506
" The created tree graph has a single source node with out-degree of 3,\n",
507507
" its 3 out-neighbours have out-degrees, respectively, of 2, 1 and 2.\n",
508508
" Out-neighbours of those nodes are sink nodes with out-degree of 0.\n",
509509
" The tree has maximum level of 3.\n",
510-
" \n",
510+
"\n",
511511
" Below there is ASCII-art rendering of this graph; edges point downward\n",
512-
" \n",
513-
" 'a' \n",
512+
"\n",
513+
" 'a'\n",
514514
" __/|\\__\n",
515515
" / | \\\n",
516516
" 'b' 'c' 'd'\n",
517517
" / \\ | / \\\n",
518518
" / | | | \\\n",
519519
" 'e' 'f' 'g' 'h' 'i'\n",
520-
" \n",
520+
"\n",
521521
" Returns\n",
522522
" -------\n",
523523
" graph : networkx.DiGraph\n",
@@ -729,7 +729,7 @@
729729
"#export\n",
730730
"def levels_DAG_FELINE():\n",
731731
" \"\"\"Create graph from Figure 9 in FELINE paper, used to show levels-filter\n",
732-
" \n",
732+
"\n",
733733
" Returns\n",
734734
" -------\n",
735735
" graph : networkx.DiGraph\n",
@@ -742,7 +742,7 @@
742742
" ('d','g'),\n",
743743
" ('e','h'),\n",
744744
" ('f','g'),('f','i')])\n",
745-
" return lf\n"
745+
" return lf"
746746
]
747747
},
748748
{
@@ -1036,14 +1036,14 @@
10361036
"#export\n",
10371037
"def RCH_graph():\n",
10381038
" \"\"\"Create RCH example graph (example in Figure 1 and 2 in PReaCH paper)\n",
1039-
" \n",
1039+
"\n",
10401040
" Positions of nodes in the drawing from Figure 1 and 2 in PReaCH paper\n",
10411041
" is stored in `pos` attribute of returned graph object.\n",
1042-
" \n",
1042+
"\n",
10431043
" Backward topological levels (i.e. with level equal to 0 for nodes\n",
10441044
" with no outgoing edges, that is with out-degree of 0) are stored\n",
10451045
" in `lvl` attribute of returned graph object.\n",
1046-
" \n",
1046+
"\n",
10471047
" Returns\n",
10481048
" -------\n",
10491049
" graph : networkx.DiGraph\n",
@@ -1066,7 +1066,7 @@
10661066
" ('l','q'),\n",
10671067
" ('m','q'),\n",
10681068
" ])\n",
1069-
" \n",
1069+
"\n",
10701070
" # backward topological levels (max path length to sink node)\n",
10711071
" ch.lvl={\n",
10721072
" 'o':0,'p':0,'q':0,'n':0,\n",
@@ -1079,9 +1079,9 @@
10791079
" 'a':(0,0),'b':(1,0), 'c':(3,0),'d':(4,0),\n",
10801080
" 'e':(0,1),'f':(1,1),'g':(2,1),'h':(3,1),'i':(4,1),\n",
10811081
" 'j':(0,2),'k':(1,2),'l':(2,2),'m':(3,2),'n':(4,2),\n",
1082-
" 'o':(0,3),'p':(1,3), 'q':(3,3), \n",
1082+
" 'o':(0,3),'p':(1,3), 'q':(3,3),\n",
10831083
" }\n",
1084-
" return ch\n"
1084+
" return ch"
10851085
]
10861086
},
10871087
{
@@ -1207,13 +1207,13 @@
12071207
"#export\n",
12081208
"def commit_graph():\n",
12091209
" \"\"\"Create an example of Git commit graph\n",
1210-
" \n",
1210+
"\n",
12111211
" This graph is taken from Derrick Stolee series of blog posts\n",
12121212
" \"Supercharging the Git Commit Graph\".\n",
1213-
" \n",
1213+
"\n",
12141214
" Positions of nodes in the drawing from `commit-graph-example.png`\n",
12151215
" is stored in `pos` attribute of returned graph object.\n",
1216-
" \n",
1216+
"\n",
12171217
" Returns\n",
12181218
" -------\n",
12191219
" graph : networkx.DiGraph\n",
@@ -1231,14 +1231,14 @@
12311231
" ('b5','c4'),\n",
12321232
" ('c3','b2'),('b2','a1'),\n",
12331233
" ])\n",
1234-
" \n",
1234+
"\n",
12351235
" cg.pos={'b0':(0,1),'b1':(1,1),'b2':(2,1),'b3':(3,1),'b4':(4,1),'b5':(5,1),'b6':(6,1),'b7':(7,1),'B':(8,1),\n",
12361236
" 'a1':(1,0),'a2':(2,0),'a3':(3,0),'a4':(4,0),'a5':(5,0), 'a7':(7,0),'A':(8,0),\n",
12371237
" 'c1':(1,2), 'c3':(3,2),'c4':(4,2),'c5':(5,2),'c6':(6,2),'c7':(7,2),\n",
12381238
" 'd5':(5,3),\n",
12391239
" }\n",
1240-
" \n",
1241-
" return cg\n"
1240+
"\n",
1241+
" return cg"
12421242
]
12431243
},
12441244
{

0 commit comments

Comments
 (0)