|
8 | 8 | "\n", |
9 | 9 | "## Recursive images\n", |
10 | 10 | "\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." |
12 | 14 | ] |
13 | 15 | }, |
14 | 16 | { |
|
104 | 106 | "cell_type": "markdown", |
105 | 107 | "metadata": {}, |
106 | 108 | "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 | + "" |
108 | 115 | ] |
109 | 116 | }, |
110 | 117 | { |
|
131 | 138 | "print(recursive_node_link_result)" |
132 | 139 | ] |
133 | 140 | }, |
| 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 | + }, |
134 | 149 | { |
135 | 150 | "cell_type": "code", |
136 | 151 | "execution_count": 22, |
|
205 | 220 | " [ green, self ]\n", |
206 | 221 | "```\n", |
207 | 222 | "\n", |
208 | | - "\n", |
| 223 | + "As it replaces self with definition of self it will look like this \n", |
| 224 | + "\n", |
| 225 | + "\n", |
| 226 | + "\n", |
| 227 | + "The end product will be\n", |
| 228 | + "\n", |
| 229 | + "\n", |
209 | 230 | "\n", |
210 | 231 | "\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)" |
212 | 233 | ] |
213 | 234 | }, |
214 | 235 | { |
|
0 commit comments