Skip to content

Commit db33267

Browse files
authored
Merge pull request #3 from abhishekraok/notebook/add_line
Update recursion notebook
2 parents 39a0f6b + bfd8c61 commit db33267

File tree

1 file changed

+25
-4
lines changed

1 file changed

+25
-4
lines changed

notebook/Recursive_images_Fractals.ipynb

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,9 @@
88
"\n",
99
"## Recursive images\n",
1010
"\n",
11-
"One of the cool thing about graphs is they can link to themselves. This creates recursive images. Here we will see how to create a recursive image continuing from the getting started image. Let us create a recursive image where Mt. Tacoma is inside Seattle, and Seattle is inside Mt. Tacoma."
11+
"One of the cool thing about graphs is they can link to themselves. The reason why this is a graph and not a quad tree (as most maps are) is to create recursive images. \n",
12+
"\n",
13+
"Here we will see how to create a recursive image continuing from the getting started image. Let us create a recursive image where Mt. Tacoma is inside Seattle, and Seattle is inside Mt. Tacoma."
1214
]
1315
},
1416
{
@@ -104,7 +106,12 @@
104106
"cell_type": "markdown",
105107
"metadata": {},
106108
"source": [
107-
"So far this has been same as the getting started example. Now to create a recursive graph, we will take the created node link and insert itself in the quad key '1333'. "
109+
"## Insert self\n",
110+
"So far this has been same as the getting started example. Now to create a recursive graph, we will take the created node link and insert itself in the quad key '1333'. \n",
111+
"\n",
112+
"### Diagram\n",
113+
"What we are trying to create is something like this\n",
114+
"![recursive graph](https://artmapstore.blob.core.windows.net/firstnodes/photos/node_image_recurse2.png)"
108115
]
109116
},
110117
{
@@ -131,6 +138,14 @@
131138
"print(recursive_node_link_result)"
132139
]
133140
},
141+
{
142+
"cell_type": "markdown",
143+
"metadata": {},
144+
"source": [
145+
"### Result\n",
146+
"Thus we have created a recursive image. This contains an image of Seattle, which has image of Tacoma, which has the first image in it. If you zoom in you will see more details"
147+
]
148+
},
134149
{
135150
"cell_type": "code",
136151
"execution_count": 22,
@@ -205,10 +220,16 @@
205220
" [ green, self ]\n",
206221
"```\n",
207222
"\n",
208-
"![Created thin line](http://kaiimap.org/tile/?node_link=line@https://artmapstore.blob.core.windows.net/firstnodes/line.tsv.gz)\n",
223+
"As it replaces self with definition of self it will look like this \n",
224+
"\n",
225+
"![Starting thin line](https://artmapstore.blob.core.windows.net/firstnodes/photos/fractal_imagetree_line.png)\n",
226+
"\n",
227+
"The end product will be\n",
228+
"\n",
229+
"![Created thin line](https://artmapstore.blob.core.windows.net/firstnodes/photos/green_blue2.png)\n",
209230
"\n",
210231
"\n",
211-
"This would create an infinitely thin line between colors blue and green. View it in [KaiiMaps](http://kaiimap.org/view?node_link=line@https://artmapstore.blob.core.windows.net/firstnodes/line.tsv.gz)"
232+
"This is an infinitely thin line between colors blue and green. You can keep zooming but never see a blunt edge. View it in [KaiiMaps](http://kaiimap.org/view?node_link=line@https://artmapstore.blob.core.windows.net/firstnodes/line.tsv.gz)"
212233
]
213234
},
214235
{

0 commit comments

Comments
 (0)