<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>weighted graphs Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/weighted-graphs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/weighted-graphs/</link>
	<description></description>
	<lastBuildDate>Wed, 26 Aug 2026 17:23:29 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>weighted graphs Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/weighted-graphs/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>How to Represent Undirected Weighted Graphs Using Edge Lists</title>
		<link>https://www.NeuralLantern.com/how-to-represent-undirected-weighted-graphs-using-edge-lists/</link>
					<comments>https://www.NeuralLantern.com/how-to-represent-undirected-weighted-graphs-using-edge-lists/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Wed, 26 Aug 2026 17:23:28 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Graphs]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[big o complexity]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[constant time lookup]]></category>
		<category><![CDATA[data structures]]></category>
		<category><![CDATA[edge list]]></category>
		<category><![CDATA[edge list representation]]></category>
		<category><![CDATA[graph algorithms]]></category>
		<category><![CDATA[graph representation]]></category>
		<category><![CDATA[graph theory]]></category>
		<category><![CDATA[node index]]></category>
		<category><![CDATA[programming graphs]]></category>
		<category><![CDATA[undirected graphs]]></category>
		<category><![CDATA[undirected weighted graph]]></category>
		<category><![CDATA[vertex list]]></category>
		<category><![CDATA[weighted graphs]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=428</guid>

					<description><![CDATA[<p>Learn the edge list representation for undirected weighted graphs. Build a vertex list and an edge list of triples that store both endpoints and the weight of each edge. Convert the list to use indexes so node lookups become constant time when the vertices are stored in a vector or array. This approach keeps each undirected edge only once and improves the speed of operations that need both edges and nodes.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-represent-undirected-weighted-graphs-using-edge-lists/">How to Represent Undirected Weighted Graphs Using Edge Lists</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">In the last video we talked about representing an unweighted and undirected graph using the edge list representation inside your machine. Now let&#8217;s talk about how to do that exact same thing with undirected weighted graphs.</p>



<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="How to Represent Undirected Weighted Graphs Using Edge Lists" width="1380" height="776" src="https://www.youtube.com/embed/p1sD8ZQxFgg?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">We start from the previous diagram and add weight costs on every single edge. The graph is a tuple consisting of a vertex list and an edge list. Vertices are listed from left to right. Edges are stored as triples with starting node, ending node, and weight.</p>



<p class="wp-block-paragraph">We build the edge list by scanning nodes left to right so each undirected edge appears only once. Then we convert the representation to use indexes instead of node values. This lets you jump to any node in constant time when using a vector or array for the vertex list.</p>



<p class="wp-block-paragraph">This makes operations on edges and nodes much faster than linear scans for both. Next up: directed graphs, both unweighted and weighted.</p>



<p class="wp-block-paragraph">0:00 Introduction to Weighted Graphs<br>1:00 Adding Edge Weights<br>3:16 Creating the Vertex List<br>5:19 Building the Edge List<br>10:34 Completing the Value-Based List<br>10:44 Why Value-Based Is Slow<br>13:04 Converting to Index-Based<br>15:29 Benefits of Index Lookups<br>17:49 Wrap-Up and Next Videos<br>18:22 Thank You and Outro</p>



<p class="wp-block-paragraph">=-=-=-=-=-=-=-=-=</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li><a href="https://www.NeuralLantern.com/social">https://www.NeuralLantern.com/social</a></li>



<li>Twitter / X: <a href="https://x.com/NeuralLantern">https://x.com/NeuralLantern</a></li>



<li>Rumble: <a href="https://rumble.com/c/c-3696939">https://rumble.com/c/c-3696939</a></li>



<li>BitChute: <a href="https://www.bitchute.com/channel/pg1Pvv5dN4Gt">https://www.bitchute.com/channel/pg1Pvv5dN4Gt</a></li>



<li>Daily Motion: <a href="https://www.dailymotion.com/neurallantern">https://www.dailymotion.com/neurallantern</a></li>



<li>Minds: <a href="https://www.minds.com/neurallantern/">https://www.minds.com/neurallantern/</a></li>



<li>Odysee: <a href="https://odysee.com/@NeuralLantern:5">https://odysee.com/@NeuralLantern:5</a></li>
</ul>



<p class="wp-block-paragraph">Please show your support!</p>



<ul class="wp-block-list">
<li>Buy me a coffee: <a href="https://ko-fi.com/neurallantern">https://ko-fi.com/neurallantern</a></li>



<li>Subscribe + Sharing on Social Media</li>



<li>Leave a comment or suggestion</li>



<li>Subscribe to the Blog: <a href="https://www.NeuralLantern.com">https://www.NeuralLantern.com</a></li>



<li>Watch the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hey there! Hello there. Hey there. In the last video we talked about representing</p>



<p class="wp-block-paragraph">an unweighted and undirected graph using the edge list representation inside your</p>



<p class="wp-block-paragraph">machine. Now let&#8217;s talk about how to do that exact same thing with undirected</p>



<p class="wp-block-paragraph">weighted graphs.</p>



<p class="wp-block-paragraph">seeing on the screen right now is basically the last diagram that I drew on my previous video</p>



<p class="wp-block-paragraph">where we talked about how to represent unweighted undirected graphs in the machine. You don&#8217;t</p>



<p class="wp-block-paragraph">necessarily need to watch that video to understand this video but you probably want to watch a few</p>



<p class="wp-block-paragraph">of my other previous graph videos to know the basics of graphs and edge lists and edge-based</p>



<p class="wp-block-paragraph">paths and node-based paths and all that stuff. So for now I&#8217;m just going to continue from this</p>



<p class="wp-block-paragraph">document. So let&#8217;s see, I&#8217;m going to duplicate</p>



<p class="wp-block-paragraph">I&#8217;m going to duplicate this real fast I am going to just kind of modify the captions here because</p>



<p class="wp-block-paragraph">we&#8217;re not going to do unweighted anywhere we&#8217;re going to say a weighted undirected graph did I</p>



<p class="wp-block-paragraph">get that backwards I think sometimes people say undirected and then the weighted part after so</p>



<p class="wp-block-paragraph">I&#8217;m just going to I&#8217;m just going to change it so it&#8217;s still undirected which means the edges don&#8217;t</p>



<p class="wp-block-paragraph">have arrows so that&#8217;s fine but it&#8217;s going to be weighted now which means I have to assign a cost</p>



<p class="wp-block-paragraph">of traveling along every single edge.</p>



<p class="wp-block-paragraph">So I am going to just</p>



<p class="wp-block-paragraph">so i am going to just sort of like erase a bunch of this stuff real fast erase these notations</p>



<p class="wp-block-paragraph">uh you know what i&#8217;m going to erase all of this because i want you to you know see it</p>



<p class="wp-block-paragraph">from start to finish okay so now i&#8217;m going to add weight costs on every single edge</p>



<p class="wp-block-paragraph">um in the last video what i mentioned is that the the edge list representation of a graph in</p>



<p class="wp-block-paragraph">the machine uh is basically your graph is a tuple that&#8217;s the orange you know marking</p>



<p class="wp-block-paragraph">a tuple that&#8217;s the orange you know markings up here your graph is a tuple where the tuple consists</p>



<p class="wp-block-paragraph">of a vertex list and also an edge list so we&#8217;ll do that from scratch together again but um let</p>



<p class="wp-block-paragraph">me get the weights on there first what color do you want i don&#8217;t know i&#8217;m going to put arbitrary</p>



<p class="wp-block-paragraph">numbers on all the edges just to say that every edge has a cost remember in a graph when you</p>



<p class="wp-block-paragraph">travel along an edge if the edge has a weight then you consider that weight to be part of the cost</p>



<p class="wp-block-paragraph">usually of traveling there so like if this was a network diagram</p>



<p class="wp-block-paragraph">traveling there so like if this was a network diagram maybe these weights represent pings or</p>



<p class="wp-block-paragraph">lags or bandwidth cost or something like that if this is like an airport diagram maybe the weights</p>



<p class="wp-block-paragraph">represent gasoline or time or something like that so i&#8217;m going to do like four there we can repeat</p>



<p class="wp-block-paragraph">weights if we really want to i&#8217;m going to line this up a little bit better that 12 looks gross</p>



<p class="wp-block-paragraph">okay i think we&#8217;re okay now i have 14 all right did i forget anything raise your hand if i forgot</p>



<p class="wp-block-paragraph">something</p>



<p class="wp-block-paragraph">raise your hand if i forgot something oh i forgot okay did you raise your hand okay</p>



<p class="wp-block-paragraph">i&#8217;m going to do the 13 and 6 uh let&#8217;s just put a 2 weight there you could put ones everywhere</p>



<p class="wp-block-paragraph">if you wanted to i mean any any number is fine um also in an unweighted graph you kind of can</p>



<p class="wp-block-paragraph">consider the number of hops to be a path cost which means you can kind of consider every uh</p>



<p class="wp-block-paragraph">edge to just have a weight of one but for now we&#8217;re just gonna say this is the weighted graph</p>



<p class="wp-block-paragraph">Okay, so the first&#8230;</p>



<p class="wp-block-paragraph">okay so the first thing we need to do uh after that is make a vertex list so our vertex list</p>



<p class="wp-block-paragraph">is just going to be a list of all of our vertices all of our nodes in the graph</p>



<p class="wp-block-paragraph">how do we list them so for starters like we usually say vertex list but for me personally</p>



<p class="wp-block-paragraph">this this particular data structure just that we&#8217;re going to type up on the bottom</p>



<p class="wp-block-paragraph">i usually like to consider that a vector or an array at least because you can jump into a</p>



<p class="wp-block-paragraph">Thank you.</p>



<p class="wp-block-paragraph">uh because you can jump into a specific index in constant time which is really really fast if you</p>



<p class="wp-block-paragraph">don&#8217;t know uh big o and time complexities check out my other videos but um it&#8217;s just really really</p>



<p class="wp-block-paragraph">fast to jump to an index when you&#8217;re using an array or a vector but it&#8217;s kind of slow when</p>



<p class="wp-block-paragraph">you&#8217;re using an actual linked list or some other data structure that makes you scan through it so</p>



<p class="wp-block-paragraph">i&#8217;m going to say that my vertex list is actually a vector but i&#8217;ll keep calling it a list anyway</p>



<p class="wp-block-paragraph">so we got the vertices uh we have to start naming them okay so the first thing is i&#8217;m going to do</p>



<p class="wp-block-paragraph">we got the three there and we got the 13 and we got the 6 and the 12 and the 15 i&#8217;m just naming</p>



<p class="wp-block-paragraph">all of the nodes in my graph i like to go from left to right because that makes it easier for</p>



<p class="wp-block-paragraph">me to debug what i&#8217;m doing um you probably in your code i said this in the last video you probably</p>



<p class="wp-block-paragraph">don&#8217;t want to store the actual value in your vertex list you probably actually want to create</p>



<p class="wp-block-paragraph">an object of type node or of type vertex and give it the template data</p>



<p class="wp-block-paragraph">and give it the template data type of in this case integer and then set the 13 inside of the class</p>



<p class="wp-block-paragraph">it&#8217;s not as fast and memory efficient as just putting a number there but uh you know for me</p>



<p class="wp-block-paragraph">i like more flexibility and i like to be able to do more powerful things with my stuff so i&#8217;m going</p>



<p class="wp-block-paragraph">to say that 13 and all of the other nodes really that represents to me i made a brand new instance</p>



<p class="wp-block-paragraph">of a class called node or vertex and then i set it up however i wanted and one of the things i did</p>



<p class="wp-block-paragraph">set it up, we&#8217;ll stick to number 30.</p>



<p class="wp-block-paragraph">things i did to set it up we&#8217;ll stick the number 13 inside of the class but for the for the diagram</p>



<p class="wp-block-paragraph">it&#8217;s fine like this okay so we have our vertex list that&#8217;s the v if you&#8217;re looking at the uh</p>



<p class="wp-block-paragraph">you know the v comma e the v part now we need to do the edge list so i&#8217;m going to say here&#8217;s my</p>



<p class="wp-block-paragraph">edge list and we&#8217;re going to use the edge list representation like i talked about in previous</p>



<p class="wp-block-paragraph">videos, which is basically a tuple where one tuple describes one edge. So in our</p>



<p class="wp-block-paragraph">So, in our graph that we have right now, we definitely need a starting point and an ending point.</p>



<p class="wp-block-paragraph">So, let me just start by looking at the 3 node, and I want to describe one of the edges for the 3.</p>



<p class="wp-block-paragraph">So, the 3 goes to the 18 and the 13 and the 12.</p>



<p class="wp-block-paragraph">I&#8217;m going to scan my eyes from left to right to make it a little more simple.</p>



<p class="wp-block-paragraph">So, the 3 node, it connects to the 13 node, so I&#8217;m going to put a 3, 13.</p>



<p class="wp-block-paragraph">the nodes doesn&#8217;t matter in an undirected graph so i could have easily put 13 and 3 it&#8217;s fine</p>



<p class="wp-block-paragraph">you don&#8217;t want to duplicate it by putting 13 comma 3 sorry you don&#8217;t want to put 3 comma 13 and then</p>



<p class="wp-block-paragraph">later put 13 comma 3. you don&#8217;t want to double it up because that would be like representing two</p>



<p class="wp-block-paragraph">separate edges i&#8217;m just going to sort it in my mind before so that i don&#8217;t have to sort it again</p>



<p class="wp-block-paragraph">later when i&#8217;m reading the graph which makes it faster for read operations but so 3 goes to 13</p>



<p class="wp-block-paragraph">And then we have to represent the weight, so the tuple gets a little more complicated.</p>



<p class="wp-block-paragraph">so the tuple gets a little more complicated than the last video just by a little bit i&#8217;m going to</p>



<p class="wp-block-paragraph">say 3 comma 13 comma the weight which is just a 1 here and i think i mentioned this in my other</p>



<p class="wp-block-paragraph">videos like a while back but uh the weight doesn&#8217;t have to be integer it could be a float it could be</p>



<p class="wp-block-paragraph">any data type you wanted really as long as your algorithms support it and you have you know your</p>



<p class="wp-block-paragraph">operator overloads all done and all that could be a full class just for the weight if you wanted to</p>



<p class="wp-block-paragraph">but for this video it&#8217;s just going to be the weight is an integer so that&#8217;s the cost of</p>



<p class="wp-block-paragraph">traveling</p>



<p class="wp-block-paragraph">is an integer so that&#8217;s the cost of traveling along that one edge so notice how all of our</p>



<p class="wp-block-paragraph">tuples have three items each it&#8217;s a triple tuple so i&#8217;m going to continue trying to represent uh</p>



<p class="wp-block-paragraph">what the three touches so the three uh it touches the 13 and it also touches the 12 so i&#8217;m going to</p>



<p class="wp-block-paragraph">say 3 goes to 12. what does that edge cost it costs us six because that&#8217;s the little pink six</p>



<p class="wp-block-paragraph">there we&#8217;re done with that tuple so what else does three touch uh touches the 13 and then it touches</p>



<p class="wp-block-paragraph">the</p>



<p class="wp-block-paragraph">touches the 13 and then it touches the uh 12 and then it touches the 18. so i&#8217;m going to put an 18</p>



<p class="wp-block-paragraph">there what does that edge cost it costs a four because there&#8217;s a pink little four at the very</p>



<p class="wp-block-paragraph">top of the graph surprise you didn&#8217;t know that okay so then uh i&#8217;m sorry we&#8217;re going to move on</p>



<p class="wp-block-paragraph">to the next node so we did the three already so i&#8217;m done with that i&#8217;m going to look at the 13.</p>



<p class="wp-block-paragraph">where does the 13 connect it connects to the three but that&#8217;s to the left</p>



<p class="wp-block-paragraph">because i&#8217;m this is why i like to scan my eyes from left to right i already know stuff on the</p>



<p class="wp-block-paragraph">left is handled i don&#8217;t have to do it again so forget about the three i already described it</p>



<p class="wp-block-paragraph">up here in the very first tuple three comma thirteen comma one i don&#8217;t want to describe it</p>



<p class="wp-block-paragraph">again so forget about the three now the thirteen connects to the six so thirteen comma six and what</p>



<p class="wp-block-paragraph">does that cost it costed two for our arbitrary labeling thirteen doesn&#8217;t touch any other node</p>



<p class="wp-block-paragraph">so we&#8217;re done with the thirteen row and by the way i&#8217;m doing a line new lines here you don&#8217;t have to</p>



<p class="wp-block-paragraph">to do that, I just</p>



<p class="wp-block-paragraph">here you don&#8217;t have to do that i just like to i like to do one you know row per per start node</p>



<p class="wp-block-paragraph">to make it look cooler and nicer okay so the uh 13 is done now let&#8217;s do the six</p>



<p class="wp-block-paragraph">six touches the 13 but remember in the previous row we just handled that so i&#8217;m not going to do</p>



<p class="wp-block-paragraph">it again the six to the right touches three other nodes you can see there are three lines</p>



<p class="wp-block-paragraph">protruding on the right side of the six so um i&#8217;m just going to take those from left to right</p>



<p class="wp-block-paragraph">It&#8217;s.</p>



<p class="wp-block-paragraph">I&#8217;m just going to take those from left to right.</p>



<p class="wp-block-paragraph">It&#8217;s touching the 12 at a cost of 14.</p>



<p class="wp-block-paragraph">The 6 is also touching the 15 at a cost of 12, I think.</p>



<p class="wp-block-paragraph">And the 6, you know, if I make mistakes, just leave it in a comment.</p>



<p class="wp-block-paragraph">I will leave the video up so you can always remember my humiliation.</p>



<p class="wp-block-paragraph">But I&#8217;m going to try my best.</p>



<p class="wp-block-paragraph">I did not practice this.</p>



<p class="wp-block-paragraph">6 touches the 15, and then the 6 touches the 18.</p>



<p class="wp-block-paragraph">So 6 touches 18, and then it costs 9.</p>



<p class="wp-block-paragraph">So now we&#8217;re probably done with the 6.</p>



<p class="wp-block-paragraph">we&#8217;re probably done with the six um moving on uh one node to the right now we&#8217;re going to look at</p>



<p class="wp-block-paragraph">the 12 okay so the 12 it touches 3 and 13 and 6 but those are already handled so forget it</p>



<p class="wp-block-paragraph">the 12 touches the 15 we did not handle that right yeah because we&#8217;re going from left to right</p>



<p class="wp-block-paragraph">uh and and then it costs us from going from 12 what am i doing it doesn&#8217;t touch the 15 oh my god</p>



<p class="wp-block-paragraph">so the 12 touches the</p>



<p class="wp-block-paragraph">uh so the 12 touches the uh the three which is already handled and it touches the</p>



<p class="wp-block-paragraph">six which is already handled and then it only goes to the right to the 18. okay</p>



<p class="wp-block-paragraph">anyway you know when i make mistakes on camera and i say do over i always go i don&#8217;t know why</p>



<p class="wp-block-paragraph">so the 12 and the 18 uh it&#8217;s going to cost us three so then we&#8217;re done with the 12th so i&#8217;m</p>



<p class="wp-block-paragraph">I&#8217;m going to go to the next one. We&#8217;ll look at the 15. The 15. 6 is already handled. 8.</p>



<p class="wp-block-paragraph">6 is already handled, 18 is not handled yet, so I&#8217;m going to put 18 there, and it cost us $88, and then the 18 is the last one.</p>



<p class="wp-block-paragraph">There&#8217;s nothing to do, because every node is on the left of the 18.</p>



<p class="wp-block-paragraph">If you carefully, if you pause the video and look at every single node, you&#8217;ll see it&#8217;s already represented in a previous node.</p>



<p class="wp-block-paragraph">So we&#8217;re officially done with the basic edge list representation of this graph, this undirected but weighted graph.</p>



<p class="wp-block-paragraph">We need to do something else, though.</p>



<p class="wp-block-paragraph">we need to do something else though i mentioned in the last video i&#8217;m going to repeat it in case</p>



<p class="wp-block-paragraph">you didn&#8217;t watch the last video but we need to make sure that uh oh i guess i forgot to separate</p>



<p class="wp-block-paragraph">those two things that means i have to duplicate the vertex list over here on the right side too</p>



<p class="wp-block-paragraph">okay um so on the left this is okay but it&#8217;s kind of slow because what if we&#8217;re trying to look at uh</p>



<p class="wp-block-paragraph">you know one particular edge let&#8217;s say that we we want to see what&#8217;s going on with this uh this</p>



<p class="wp-block-paragraph">edge right here. Let&#8217;s say the 3 and the 13 edge, for whatever reason.</p>



<p class="wp-block-paragraph">13 edge for whatever reason um i don&#8217;t know green 3 and the 13 edge okay so we&#8217;re looking at that</p>



<p class="wp-block-paragraph">edge maybe for some reason we had just finished scanning uh maybe that&#8217;s not a fun edge well</p>



<p class="wp-block-paragraph">what&#8217;s going on hello uh oh i forgot to set up a thing where you can make your cursor really</p>



<p class="wp-block-paragraph">visible okay um actually so so this is not the most fun edge let me let me see about the 15 and</p>



<p class="wp-block-paragraph">and 18-inch.</p>



<p class="wp-block-paragraph">18 edge excuse me i had to take a drink of water so we&#8217;re going to look at this edge connecting</p>



<p class="wp-block-paragraph">the 15 and the 18 node that&#8217;s a little more interesting so you can imagine maybe you were</p>



<p class="wp-block-paragraph">doing a little scan uh if you know big o complexity by now we had to check out every single edge in</p>



<p class="wp-block-paragraph">this edge list until we found the one that connected the 15 and the 18 so this was a linear</p>



<p class="wp-block-paragraph">time scan based on the number of edges so this is just it&#8217;s scalable but it&#8217;s not very fast right so</p>



<p class="wp-block-paragraph">We ended up kind of looking at this one.</p>



<p class="wp-block-paragraph">so we ended up kind of looking at this one right here not fast um but what if we want to examine</p>



<p class="wp-block-paragraph">uh some properties of the nodes or the vertices uh involved like the 15 and the 18.</p>



<p class="wp-block-paragraph">here in this representation on the left we have the values we have the 15 value and the 18 value</p>



<p class="wp-block-paragraph">we don&#8217;t really have a pointer to a full node object if that&#8217;s what you&#8217;re doing in your code</p>



<p class="wp-block-paragraph">so um how do we get those those node objects we&#8217;re gonna have to do another linear scan we&#8217;re gonna</p>



<p class="wp-block-paragraph">I&#8217;m gonna have to look at this one right here.</p>



<p class="wp-block-paragraph">to look at this one right here oh that doesn&#8217;t match the value of 15 look at this one look at</p>



<p class="wp-block-paragraph">this one look at this one we&#8217;re gonna have to scan every single node until we realize that it&#8217;s those</p>



<p class="wp-block-paragraph">two at the end this is true even if it&#8217;s a vector uh holding your vertices because if we don&#8217;t know</p>



<p class="wp-block-paragraph">the index then we have to actually just sweep through the whole vector so that&#8217;s really slow</p>



<p class="wp-block-paragraph">it&#8217;s still kind of scalable but uh it&#8217;s not the best instead let&#8217;s update the the representation</p>



<p class="wp-block-paragraph">on the right to have index</p>



<p class="wp-block-paragraph">on the right to have indexes we did this in the last video but basically if you just kind of look</p>



<p class="wp-block-paragraph">at this three node here the three node well let me let me copy this one more time the three node</p>



<p class="wp-block-paragraph">corresponds to index zero which i forgot to write down my bad let me write that down for you real</p>



<p class="wp-block-paragraph">fast get rid of that get rid of that get rid of that okay so i&#8217;m just going to update this vertex</p>



<p class="wp-block-paragraph">list to just show you that if we have a vector or in a</p>



<p class="wp-block-paragraph">that if we have a vector or an array then every single item has an index here&#8217;s index one index</p>



<p class="wp-block-paragraph">two index three and four and five and then i guess i&#8217;ll just copy paste that to the other one since</p>



<p class="wp-block-paragraph">i was too dumb to make an extra separated graph there um separated item okay so the uh the 15</p>



<p class="wp-block-paragraph">sorry no the 13 the 3 and the 13 i guess i got to get rid of that that&#8217;s distracting me</p>



<p class="wp-block-paragraph">I guess I gotta get rid of that, that&#8217;s distracting me.</p>



<p class="wp-block-paragraph">The three and the 13,</p>



<p class="wp-block-paragraph">those correspond to indexes zero and one</p>



<p class="wp-block-paragraph">in the vertex list, right?</p>



<p class="wp-block-paragraph">So zero and one, that&#8217;s the three and the 13.</p>



<p class="wp-block-paragraph">So I&#8217;m just gonna change the values,</p>



<p class="wp-block-paragraph">the T-type values, to the raw indexes.</p>



<p class="wp-block-paragraph">It&#8217;s gonna seem a little weird at first,</p>



<p class="wp-block-paragraph">and I&#8217;m gonna leave the weight alone,</p>



<p class="wp-block-paragraph">because that&#8217;s totally fine.</p>



<p class="wp-block-paragraph">We&#8217;re not gonna jump to a weight,</p>



<p class="wp-block-paragraph">unless maybe you had a weight list, a weight vector,</p>



<p class="wp-block-paragraph">if you wanted to make instances of weights.</p>



<p class="wp-block-paragraph">You could do that, I&#8217;m not gonna do it.</p>



<p class="wp-block-paragraph">do that i&#8217;m not going to do it so then again the 3 is a 0 the 12 is index 3 the 3 is another 0</p>



<p class="wp-block-paragraph">the 18 is index 5. i&#8217;ll just do this for every single row so the 13 here is index 1 and then</p>



<p class="wp-block-paragraph">the 6 index 2 notice how i&#8217;m just looking up here at the indexes of the vertex list and i&#8217;m just</p>



<p class="wp-block-paragraph">changing the node values to the indexes where the nodes actually are in the vertex list so that&#8217;s a</p>



<p class="wp-block-paragraph">So two.</p>



<p class="wp-block-paragraph">vertex list so that&#8217;s a 2 and then the 12 is going to be a 3 and then the 6 is also going to be a 2</p>



<p class="wp-block-paragraph">and the 15 is going to be a 4 and then the 6 is going to be a 2 and 18 is going to be 5</p>



<p class="wp-block-paragraph">on to the next row the 12 node is index 3 the 18 node is index 5 uh the 15 node is index 4 and the</p>



<p class="wp-block-paragraph">18 node is index 5 so whoa whoa correct me if i made a typo in the comments please i&#8217;ll release</p>



<p class="wp-block-paragraph">another video as a thank you.</p>



<p class="wp-block-paragraph">i&#8217;ll release another video as a thank you but uh now i&#8217;ve converted the whole entire representation</p>



<p class="wp-block-paragraph">on the right side to an index based uh uh you know edge list so i&#8217;m gonna do this one over</p>



<p class="wp-block-paragraph">here is by value and the one on the right is by index why is the one on the right better now</p>



<p class="wp-block-paragraph">remember at some point we might have been scanning to find an edge well what did i just do wrong oh i</p>



<p class="wp-block-paragraph">clicked over there okay we might have been scanning to find you know some edge so we&#8217;re like</p>



<p class="wp-block-paragraph">Like, subscribe, and hit the bell icon to be notified when I post a new video. Thanks for watching, and I&#8217;ll see you in the next one.</p>



<p class="wp-block-paragraph">Bye-bye.</p>



<p class="wp-block-paragraph">edge so we&#8217;re like scanning scanning scanning scanning and then maybe we decide we&#8217;re trying</p>



<p class="wp-block-paragraph">to figure out what&#8217;s going on with the two and the not the two and the four the uh the six and</p>



<p class="wp-block-paragraph">the fifteen node right so that&#8217;s uh the six and the fifteen node that&#8217;s basically you know this</p>



<p class="wp-block-paragraph">right here uh so now what if we want to do something with the nodes we want to do something</p>



<p class="wp-block-paragraph">with the six node do something with the 15 node we don&#8217;t want to scan through the vertex list again</p>



<p class="wp-block-paragraph">we don&#8217;t want to go scan scan scan scan scan that&#8217;s linear time that&#8217;s not as fast as it could</p>



<p class="wp-block-paragraph">Could be.</p>



<p class="wp-block-paragraph">That&#8217;s linear time, that&#8217;s not as fast as it could be.</p>



<p class="wp-block-paragraph">So instead, we&#8217;ve already converted here so that we have indexes.</p>



<p class="wp-block-paragraph">So if I look at the 2 and the 4, the 2 and the 4 represent indexes, not node values.</p>



<p class="wp-block-paragraph">So this 2 tells me that I can go to index 2 to get the 6 node,</p>



<p class="wp-block-paragraph">and the 4 tells me I can go to index 4 to get the 15 node.</p>



<p class="wp-block-paragraph">Notice how I did not have to scan the vertex list to figure out where those nodes are.</p>



<p class="wp-block-paragraph">And if you&#8217;re using a vector for your vertex list,</p>



<p class="wp-block-paragraph">list then you can jump to every index in constant time so now if we were going to you know search</p>



<p class="wp-block-paragraph">and do a bunch of stuff on edges we probably only had to spend linear time on the edge list but then</p>



<p class="wp-block-paragraph">we only spent constant time uh to to manipulate each node whereas it would have been linear plus</p>



<p class="wp-block-paragraph">linear uh in the past like on the left side that would have been uh you know if we&#8217;re going to do</p>



<p class="wp-block-paragraph">stuff with with both the edges and the nodes it would have been o of linear time based on the</p>



<p class="wp-block-paragraph">number of edges if we&#8217;re gonna do every</p>



<p class="wp-block-paragraph">on the number of edges if we&#8217;re going to do every you know something to every single edge</p>



<p class="wp-block-paragraph">plus linear time based on number of vertices but over here it&#8217;s going to be linear time of the</p>



<p class="wp-block-paragraph">edges plus just constant time which basically means it&#8217;s going to be you know big o of just</p>



<p class="wp-block-paragraph">the number of edges and i&#8217;m talking about a you know a fantasy scenario where we&#8217;re just going</p>



<p class="wp-block-paragraph">to scan a bunch of stuff you can imagine there&#8217;s a whole bunch of different operations you could</p>



<p class="wp-block-paragraph">do on a graph, and it would be very advantageous and fast.</p>



<p class="wp-block-paragraph">very advantageous and fast if you could just jump to a node if you wanted to be able to manipulate</p>



<p class="wp-block-paragraph">it directly um let&#8217;s see so i did i think 20 minutes already so i think this is going to be</p>



<p class="wp-block-paragraph">it for for today&#8217;s video um and i&#8217;m going to do another video after this where we start working</p>



<p class="wp-block-paragraph">with directed graphs so i&#8217;m going to do directed unweighted and then directed weighted so by the</p>



<p class="wp-block-paragraph">time you watch all four of these videos</p>



<p class="wp-block-paragraph">by the time you watch all four of these videos you&#8217;ll know how to represent all four types of</p>



<p class="wp-block-paragraph">graphs in the machine okay anyway so thank you for watching this video i hope you learned a little</p>



<p class="wp-block-paragraph">bit of stuff and had a little bit of fun i&#8217;ll see you next time tell your friends eat a chocolate</p>



<p class="wp-block-paragraph">okay i&#8217;m outie hey everybody thanks for watching this video again from the bottom of my heart i</p>



<p class="wp-block-paragraph">really appreciate it i do hope you did learn something and have some fun uh if you could do</p>



<p class="wp-block-paragraph">me a please a small little favor could you please</p>



<p class="wp-block-paragraph">please, a small little favor. Could you please subscribe and follow this channel or these videos</p>



<p class="wp-block-paragraph">or whatever it is you do on the current social media website that you&#8217;re looking at right now?</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos, or just I&#8217;ll be able to keep making</p>



<p class="wp-block-paragraph">videos in general. So please do me a kindness and subscribe. You know, sometimes I&#8217;m sleeping</p>



<p class="wp-block-paragraph">in the middle of the night and I just wake up because I know somebody subscribed.</p>



<p class="wp-block-paragraph">just wake up because i know somebody subscribed or followed it just wakes me up and i get filled</p>



<p class="wp-block-paragraph">with joy that&#8217;s exactly what happens every single time so you could do it as a nice favor to me or</p>



<p class="wp-block-paragraph">you could you could troll me if you want to just wake me up in the middle of the night just subscribe</p>



<p class="wp-block-paragraph">and then i&#8217;ll i&#8217;ll just wake up i promise that&#8217;s what will happen also uh if you look at the middle</p>



<p class="wp-block-paragraph">of the screen right now you should see a qr code which you can scan in order to go to the website</p>



<p class="wp-block-paragraph">which i think is also named somewhere at the bottom of this video and it&#8217;ll take you to my</p>



<p class="wp-block-paragraph">main website where you can just kind of like see all the</p>



<p class="wp-block-paragraph">where you can just kind of like see all the videos i published and the services and tutorials and</p>



<p class="wp-block-paragraph">things that i offer and all that good stuff and uh if you have a suggestion for uh uh clarifications</p>



<p class="wp-block-paragraph">or errata or just future videos that you want to see please leave a comment or if you just want to</p>



<p class="wp-block-paragraph">say hey what&#8217;s up what&#8217;s going on you know just send me a comment whatever i also wake up for</p>



<p class="wp-block-paragraph">those in the middle of the night i get i wake up in a cold sweat and i&#8217;m like it would really it</p>



<p class="wp-block-paragraph">really mean the world to me I would really appreciate</p>



<p class="wp-block-paragraph">it really mean the world to me i would really appreciate it so again thank you so much for</p>



<p class="wp-block-paragraph">watching this video and enjoy the cool music as as i fade into the darkness which is coming for us all</p>



<p class="wp-block-paragraph">Teksting av Nicolai Winther</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/how-to-represent-undirected-weighted-graphs-using-edge-lists/">How to Represent Undirected Weighted Graphs Using Edge Lists</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/how-to-represent-undirected-weighted-graphs-using-edge-lists/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>Graph Paths Explained: Node vs Edge Based, Simple Paths, Cycles and DAGs</title>
		<link>https://www.NeuralLantern.com/graph-paths-explained-node-vs-edge-based-simple-paths-cycles-and-dags/</link>
					<comments>https://www.NeuralLantern.com/graph-paths-explained-node-vs-edge-based-simple-paths-cycles-and-dags/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Wed, 05 Aug 2026 07:17:18 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Graphs]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[cyclic path]]></category>
		<category><![CDATA[DAG]]></category>
		<category><![CDATA[directed acyclic graph]]></category>
		<category><![CDATA[edge based path]]></category>
		<category><![CDATA[edge list]]></category>
		<category><![CDATA[graph algorithms basics]]></category>
		<category><![CDATA[graph cycles]]></category>
		<category><![CDATA[graph edges]]></category>
		<category><![CDATA[graph paths]]></category>
		<category><![CDATA[graph theory]]></category>
		<category><![CDATA[node based path]]></category>
		<category><![CDATA[paths in graphs]]></category>
		<category><![CDATA[simple path graph]]></category>
		<category><![CDATA[weighted graphs]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=420</guid>

					<description><![CDATA[<p>Paths in a graph show how to travel from a start node to a destination. Node-based paths list the nodes visited but cannot distinguish parallel edges with different weights. Edge-based paths use tuples of start node, destination node and weight so every route is exact. Simple paths repeat no edges or vertices. Cyclic paths start and end on the same node and prove the graph is cyclic. A DAG is a directed acyclic graph with no cycles. These ideas prepare for graph algorithms.</p>
<p>The post <a href="https://www.NeuralLantern.com/graph-paths-explained-node-vs-edge-based-simple-paths-cycles-and-dags/">Graph Paths Explained: Node vs Edge Based, Simple Paths, Cycles and DAGs</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<figure class="wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio"><div class="wp-block-embed__wrapper">
<iframe title="Graph Paths Explained: Node vs Edge Based, Simple Paths, Cycles and DAGs" width="1380" height="776" src="https://www.youtube.com/embed/B1cK5ajqKx0?feature=oembed" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share" referrerpolicy="strict-origin-when-cross-origin" allowfullscreen></iframe>
</div></figure>



<p class="wp-block-paragraph">Hey there, let&#8217;s talk about paths inside of a graph. We draw a directed weighted graph and compare node-based paths to edge-based paths. Node lists alone cannot tell which edge you took when parallel edges have different costs. Edge-based paths use tuples of start, destination and weight so every route is clear.</p>



<p class="wp-block-paragraph">We also cover simple paths with no repeated edges or vertices, cyclic paths that start and end on the same node, and how a cycle proves the graph is cyclic. Then we explain DAGs, directed acyclic graphs, with examples that stay acyclic and ones that gain cycles.</p>



<p class="wp-block-paragraph">This sets up algorithms for later videos. Leave a comment with topics you want next. Thanks for watching and please subscribe.</p>



<p class="wp-block-paragraph">00:00 Introduction to Graph Paths<br>00:28 Drawing a Sample Graph<br>02:25 What is a Path<br>02:42 Node-Based Paths<br>03:27 Adding Weights and Parallel Edges<br>04:34 Example Paths with Different Costs<br>07:19 Edge-Based Paths<br>07:35 Representing Paths with Tuples<br>11:35 Order Matters in Directed Graphs<br>12:52 Simple Paths<br>15:34 Cyclic Paths<br>18:22 Directed Acyclic Graphs DAGs<br>19:08 Building a DAG Example<br>21:41 Adding a Cycle to Break the DAG<br>23:15 Conclusion and Future Videos</p>



<p class="wp-block-paragraph">=-=-=-=-=-=-=-=-=</p>



<p class="wp-block-paragraph">Thanks for watching!</p>



<p class="wp-block-paragraph">Find us on other social media here:</p>



<ul class="wp-block-list">
<li>https://www.NeuralLantern.com/social</li>



<li>Twitter / X: https://x.com/NeuralLantern</li>



<li>Rumble: https://rumble.com/c/c-3696939</li>



<li>BitChute: https://www.bitchute.com/channel/pg1Pvv5dN4Gt</li>



<li>Daily Motion: https://www.dailymotion.com/neurallantern</li>



<li>Minds: https://www.minds.com/neurallantern/</li>



<li>Odysee: https://odysee.com/@NeuralLantern:5</li>
</ul>



<p class="wp-block-paragraph">Please show your support!</p>



<ul class="wp-block-list">
<li>Buy me a coffee: https://ko-fi.com/neurallantern</li>



<li>Subscribe + Sharing on Social Media</li>



<li>Leave a comment or suggestion</li>



<li>Subscribe to the Blog: https://www.NeuralLantern.com</li>



<li>Watch the main &#8220;pinned&#8221; video of this channel for offers and extras</li>
</ul>



<p class="wp-block-paragraph">Hey there, let&#8217;s talk about paths inside of a graph.</p>



<p class="wp-block-paragraph">Okay, so first thing that I&#8217;ll say is you probably should have watched my other videos already so that you understand at least the basics of graphs or maybe you already know and you just came here for a little extra.</p>



<p class="wp-block-paragraph">So let&#8217;s just draw a sample graph here.</p>



<p class="wp-block-paragraph">I&#8217;m going to do like random nodes.</p>



<p class="wp-block-paragraph">Let&#8217;s see what am I supposed to do.</p>



<p class="wp-block-paragraph">I&#8217;m supposed to like full screen that.</p>



<p class="wp-block-paragraph">I&#8217;m going to draw some random nodes with some random values inside of them.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to do like a three here.</p>



<p class="wp-block-paragraph">Maybe like a three like that.</p>



<p class="wp-block-paragraph">And then I&#8217;m going to duplicate this a few times.</p>



<p class="wp-block-paragraph">So I&#8217;m going to go.</p>



<p class="wp-block-paragraph">This is a valid graph.</p>



<p class="wp-block-paragraph">It&#8217;s just not a connected graph as we talked about in my last video.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to do this.</p>



<p class="wp-block-paragraph">I guess that&#8217;s okay.</p>



<p class="wp-block-paragraph">I&#8217;m going to change all these numbers.</p>



<p class="wp-block-paragraph">Even though your graph should be able to support duplicate values in the nodes,</p>



<p class="wp-block-paragraph">it&#8217;s going to be really hard to explain.</p>



<p class="wp-block-paragraph">So I&#8217;m just going to change all this stuff.</p>



<p class="wp-block-paragraph">9 here and then like 22.</p>



<p class="wp-block-paragraph">I think that&#8217;s probably good.</p>



<p class="wp-block-paragraph">So I&#8217;m going to do this.</p>



<p class="wp-block-paragraph">And this.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">So still a valid graph, but there&#8217;s no chance that we could have a path anywhere in this</p>



<p class="wp-block-paragraph">entire graph.</p>



<p class="wp-block-paragraph">anywhere in this entire graph so that sucks we could by the way do a path</p>



<p class="wp-block-paragraph">with a undirected graph but I kind of feel like I want to do direction on all</p>



<p class="wp-block-paragraph">the edges so let&#8217;s see let&#8217;s do direction and also weight I&#8217;m gonna like draw an</p>



<p class="wp-block-paragraph">arrow here and arrow here there I&#8217;m gonna draw edges first in a way that it</p>



<p class="wp-block-paragraph">like I could find a path almost anywhere I want so I&#8217;m just going to like draw a bunch of edges</p>



<p class="wp-block-paragraph">maybe like another edge over here nope that&#8217;s wrong how about this maybe another edge going up</p>



<p class="wp-block-paragraph">here and an edge going up here and an edge going down there I&#8217;m just going to draw a whole bunch</p>



<p class="wp-block-paragraph">of edges in the hopes that we&#8217;ll have a decent graph with lots of path possibilities okay I guess</p>



<p class="wp-block-paragraph">Oh, no, no, this is not a complete graph.</p>



<p class="wp-block-paragraph">I&#8217;ve just drawn a graph where you can kind of get everywhere.</p>



<p class="wp-block-paragraph">Okay, so, well, I mean, what is a path?</p>



<p class="wp-block-paragraph">It&#8217;s just sort of like, you know, some sort of a representation of how do you get from</p>



<p class="wp-block-paragraph">one start node to some destination node, like a map.</p>



<p class="wp-block-paragraph">So the first thing that we could do is we could say, let&#8217;s make a path based on nodes.</p>



<p class="wp-block-paragraph">I&#8217;m going to say node-based paths.</p>



<p class="wp-block-paragraph">Actually, let me get rid of this and put it on the next slide.</p>



<p class="wp-block-paragraph">We&#8217;ll do this, duplicate it, that way I have the original.</p>



<p class="wp-block-paragraph">Let&#8217;s pretend that our path is going to be just a list of nodes that we travel through.</p>



<p class="wp-block-paragraph">So I&#8217;m going to say node-based and we&#8217;ll have one path, we&#8217;ll say path1 and then path2,</p>



<p class="wp-block-paragraph">maybe we&#8217;ll do like a second path.</p>



<p class="wp-block-paragraph">well at first we might think this is totally fine but uh later on it&#8217;ll get confusing in terms of</p>



<p class="wp-block-paragraph">which edge did we actually take so let me show you let me show you what i mean i&#8217;m first going</p>



<p class="wp-block-paragraph">to add weights to all the edges so i&#8217;m just going to do like you know four and a three over here</p>



<p class="wp-block-paragraph">and then like a one and a two little one and then like a six and then like a four i&#8217;m just adding</p>



<p class="wp-block-paragraph">random weights or random costs to all of the edges and um then eventually let&#8217;s see when i</p>



<p class="wp-block-paragraph">let&#8217;s see when I finish doing all of that eventually we can probably realize that we</p>



<p class="wp-block-paragraph">could add more than one edge going from the same start to the same destination node but give it a</p>



<p class="wp-block-paragraph">different weight so that we have a little bit more of a choice so suppose for the sake of argument</p>



<p class="wp-block-paragraph">that we have this six and the four here the six can go to the four at a cost of four but maybe the</p>



<p class="wp-block-paragraph">a cost of one. I don&#8217;t know why it&#8217;s there. I don&#8217;t know why the four is there. Also,</p>



<p class="wp-block-paragraph">we&#8217;ll just say this is our graph. So you can have edges like this that go to the same start</p>



<p class="wp-block-paragraph">and destination nodes, but have different weights. So a path that is based on nodes</p>



<p class="wp-block-paragraph">doesn&#8217;t really have enough information to tell us which edge we took. Let me show you what I mean.</p>



<p class="wp-block-paragraph">So suppose we want to get from node, I don&#8217;t know, node three, I&#8217;ll put an S here for start.</p>



<p class="wp-block-paragraph">for start. And then I guess I&#8217;ll put a D for destination or donut. I&#8217;ll put a D there on</p>



<p class="wp-block-paragraph">node number 22. So we&#8217;ll say we&#8217;re going to go from node three to node 22. So start and destination</p>



<p class="wp-block-paragraph">a path based, sorry, a node based path, path one, we could say maybe let&#8217;s go from the three</p>



<p class="wp-block-paragraph">to the six to the four to the 12 to the nine to the 22 and that tells you all the notes that</p>



<p class="wp-block-paragraph">you would hop on another path could be let&#8217;s see that first path when we went from three one six</p>



<p class="wp-block-paragraph">four twelve nine uh 22 when we go from the six to the four we could have a second path here</p>



<p class="wp-block-paragraph">that goes from three to one to six to four but takes a different edge this is kind of what i&#8217;m</p>



<p class="wp-block-paragraph">this is kind of what i&#8217;m trying to show you notice that we have two different paths i&#8217;m going to do</p>



<p class="wp-block-paragraph">one in uh maybe red so it&#8217;s going to be three one six four so from three to one and then six</p>



<p class="wp-block-paragraph">and then we&#8217;ll travel along that four edge once we get to the four we&#8217;ll go 12 and then once we</p>



<p class="wp-block-paragraph">Then the other path, path number two, let&#8217;s say that we chose the other edge.</p>



<p class="wp-block-paragraph">We chose the six to the four edge that only cost us one.</p>



<p class="wp-block-paragraph">So it would kind of look the same for the most part, except when we finally get to that</p>



<p class="wp-block-paragraph">other node, we&#8217;re actually going to be going this way, right?</p>



<p class="wp-block-paragraph">And then we&#8217;re going to go up and then to the right and then down.</p>



<p class="wp-block-paragraph">So if you look at this carefully for a little while, maybe pause the video.</p>



<p class="wp-block-paragraph">These are actually two totally different paths with two totally different costs.</p>



<p class="wp-block-paragraph">different costs. So, um, you know, the cost of the orange, let me write it in orange.</p>



<p class="wp-block-paragraph">It&#8217;s going to be five plus one. So six, and then a seven there, and then a eight, nine there. And</p>



<p class="wp-block-paragraph">then, uh, then I guess like a 15 there and then a 16 there. So the cost of the orange pass is going</p>



<p class="wp-block-paragraph">to be 16. If we switch to the red path, the only difference is the choice of edge we took between</p>



<p class="wp-block-paragraph">we took between the six and the four node.</p>



<p class="wp-block-paragraph">So we would increase our cost by three.</p>



<p class="wp-block-paragraph">So the red path would be a cost of 19.</p>



<p class="wp-block-paragraph">But how can you tell the difference in a path</p>



<p class="wp-block-paragraph">that is based on a node?</p>



<p class="wp-block-paragraph">It doesn&#8217;t have enough information, right?</p>



<p class="wp-block-paragraph">So what we&#8217;re gonna do instead</p>



<p class="wp-block-paragraph">is we&#8217;re gonna use edge-based paths.</p>



<p class="wp-block-paragraph">Edge-based paths.</p>



<p class="wp-block-paragraph">In some places, you know, you can use node-based paths.</p>



<p class="wp-block-paragraph">That&#8217;s totally fine.</p>



<p class="wp-block-paragraph">fine but for me I&#8217;m going to say let&#8217;s do edge based paths edge based paths and now we just have</p>



<p class="wp-block-paragraph">to figure out how to add that extra information into the path so going from the three to the one</p>



<p class="wp-block-paragraph">we&#8217;re actually traveling along an edge right we&#8217;re traveling along that five edge so let&#8217;s just stick</p>



<p class="wp-block-paragraph">a tuple in there a tuple meaning just a little collection of values for those of you in c++ if</p>



<p class="wp-block-paragraph">items we&#8217;re going to use three item tuples tuples not always limited to three items it could be two</p>



<p class="wp-block-paragraph">three four even probably one um or much more so i&#8217;m going to say let&#8217;s use a tuple that has three</p>



<p class="wp-block-paragraph">items per item or tuple and we&#8217;ll just say that we specify the start node and then the destination</p>



<p class="wp-block-paragraph">node so we start at three we go to one and then the weight of the edge that we choose to travel</p>



<p class="wp-block-paragraph">but we&#8217;re putting enough information into our hop</p>



<p class="wp-block-paragraph">that this can be considered an edge-based path.</p>



<p class="wp-block-paragraph">So when we go to the one node,</p>



<p class="wp-block-paragraph">we ended on the one node, sorry, we&#8217;ve gone to the one node.</p>



<p class="wp-block-paragraph">We just ended there.</p>



<p class="wp-block-paragraph">So we could start on the one node for the next tuple</p>



<p class="wp-block-paragraph">because then we&#8217;re going to go to the,</p>



<p class="wp-block-paragraph">what are we doing first, red?</p>



<p class="wp-block-paragraph">I think we&#8217;re doing red first, yeah.</p>



<p class="wp-block-paragraph">We go from the one node to the six nodes.</p>



<p class="wp-block-paragraph">So I&#8217;m going to go comma six.</p>



<p class="wp-block-paragraph">and then we choose which edge to travel along that&#8217;s just the one edge and so 161 means start</p>



<p class="wp-block-paragraph">at the one node and at the six node and take the one weighted edge then do the same thing</p>



<p class="wp-block-paragraph">again for the next tuple so we&#8217;re at the six now where are we going to go we&#8217;re going to go to the</p>



<p class="wp-block-paragraph">four and then we choose the edge that costs four and then for the next tuple we&#8217;re on the four</p>



<p class="wp-block-paragraph">I&#8217;m going to say 12 is the destination and which edge did we choose the two even though there&#8217;s</p>



<p class="wp-block-paragraph">only one choice at least we have enough information for all edges in our entire path so then again</p>



<p class="wp-block-paragraph">we&#8217;re at the 12 we&#8217;re going to go to the 9 so I&#8217;m going to put a common 9 there and then we choose</p>



<p class="wp-block-paragraph">to take the edge that uh what was that cost six I can&#8217;t read anymore um let me actually just look</p>



<p class="wp-block-paragraph">real fast six I guess I overrode it I&#8217;m just going to assume that it&#8217;s a six um I&#8217;ve got</p>



<p class="wp-block-paragraph">I guess I could erase it real fast</p>



<p class="wp-block-paragraph">or move it or something</p>



<p class="wp-block-paragraph">okay let&#8217;s see what is that</p>



<p class="wp-block-paragraph">yeah it&#8217;s a 6 okay</p>



<p class="wp-block-paragraph">so we&#8217;re on the 12 we&#8217;re going to go to the 9</p>



<p class="wp-block-paragraph">and we choose to take the edge that costs 6</p>



<p class="wp-block-paragraph">then we&#8217;re on the 9</p>



<p class="wp-block-paragraph">and we choose to go to the 22</p>



<p class="wp-block-paragraph">using the edge that costs 2</p>



<p class="wp-block-paragraph">and then this last thing doesn&#8217;t need to be done</p>



<p class="wp-block-paragraph">because we have the entirety of the path</p>



<p class="wp-block-paragraph">in our edge based list</p>



<p class="wp-block-paragraph">So I&#8217;m actually just going to copy paste this entire path and stick it into the second path</p>



<p class="wp-block-paragraph">because remember the only difference between the first path and the second path that we</p>



<p class="wp-block-paragraph">chose is when we were going from 6 to 4 we chose the 1 edge instead of the 4 edge.</p>



<p class="wp-block-paragraph">So now look at this, I can just change that 4 to a 1 and now we definitely have two different</p>



<p class="wp-block-paragraph">paths and because we&#8217;re using edges to describe our path we can tell the difference.</p>



<p class="wp-block-paragraph">You know in a computer program we would know exactly which edge to travel along or even</p>



<p class="wp-block-paragraph">which edge to travel along or even just a user moving their finger along a graph or whatever.</p>



<p class="wp-block-paragraph">So in my opinion, edge-based paths are a little bit better.</p>



<p class="wp-block-paragraph">They&#8217;re also better because if you practice writing down edge lists like this,</p>



<p class="wp-block-paragraph">then you get a lot closer to a representation of a graph in your machine called an edge list.</p>



<p class="wp-block-paragraph">So in an edge list, oops, I put ed light.</p>



<p class="wp-block-paragraph">I don&#8217;t know why I did that.</p>



<p class="wp-block-paragraph">And now the computer&#8217;s not responding.</p>



<p class="wp-block-paragraph">So my mistake is immortalized.</p>



<p class="wp-block-paragraph">my mistake is immortalized. Edge list representation of a graph is basically a graph is equal to</p>



<p class="wp-block-paragraph">a tuple where one item in the tuple is a list of vertices and another item in the tuple</p>



<p class="wp-block-paragraph">is a list of edges. So if you learn how to do edge-based paths, then you&#8217;re already a step</p>



<p class="wp-block-paragraph">closer to being able to represent a graph inside of your computer program in the machine.</p>



<p class="wp-block-paragraph">So another thing that I want to point out is that since this graph has direction,</p>



<p class="wp-block-paragraph">the order of the start node and the destination node absolutely matters for example if we have</p>



<p class="wp-block-paragraph">this three comma one here indicating we start at three and we end at one well that means there must</p>



<p class="wp-block-paragraph">be an edge that points from three to one otherwise this is an invalid path if for some reason</p>



<p class="wp-block-paragraph">if for some reason let me get rid of this here there&#8217;s too much stuff on the screen</p>



<p class="wp-block-paragraph">three this is invalid because it&#8217;s saying that we have to start at the one node and end at the three</p>



<p class="wp-block-paragraph">node but the one node has no has no edge going to the three node so this is totally invalid</p>



<p class="wp-block-paragraph">does that make sense i hope it makes sense to you if this was an undirected graph where every single</p>



<p class="wp-block-paragraph">edge did not have direction then the order actually wouldn&#8217;t even matter you would just</p>



<p class="wp-block-paragraph">to see if an edge existed.</p>



<p class="wp-block-paragraph">So let&#8217;s see, we talked about different paths.</p>



<p class="wp-block-paragraph">You know, typically you would want to choose</p>



<p class="wp-block-paragraph">the lowest cost path,</p>



<p class="wp-block-paragraph">but there are algorithms that we can use</p>



<p class="wp-block-paragraph">in future videos to compute paths.</p>



<p class="wp-block-paragraph">Let&#8217;s see, something called a simple path</p>



<p class="wp-block-paragraph">is where every single edge in the path is distinct.</p>



<p class="wp-block-paragraph">So for example, I don&#8217;t know,</p>



<p class="wp-block-paragraph">let&#8217;s say we had like a really gross path here.</p>



<p class="wp-block-paragraph">Let me get rid of, let me get rid of some of this.</p>



<p class="wp-block-paragraph">Let me get rid of some of this.</p>



<p class="wp-block-paragraph">Get rid of the oranges maybe.</p>



<p class="wp-block-paragraph">So that this is a little slightly easier to read.</p>



<p class="wp-block-paragraph">Let&#8217;s see.</p>



<p class="wp-block-paragraph">Did we choose?</p>



<p class="wp-block-paragraph">Oh, I have to fix this.</p>



<p class="wp-block-paragraph">Let&#8217;s fix the three and then the one.</p>



<p class="wp-block-paragraph">And then we chose the four.</p>



<p class="wp-block-paragraph">So this is the red path indeed.</p>



<p class="wp-block-paragraph">So a simple path is, nope, I accidentally erased like an extra edge or something.</p>



<p class="wp-block-paragraph">So I got to do one from the four to the 12.</p>



<p class="wp-block-paragraph">Okay.</p>



<p class="wp-block-paragraph">to the 12 okay let me just do that real fast from the 4 to the 12. at a cost of 2. okay so a simple</p>



<p class="wp-block-paragraph">path is something where you don&#8217;t repeat edges so i can also write down simple path here simple path</p>



<p class="wp-block-paragraph">if this was not a simple path then we would just basically have to repeat an edge somewhere</p>



<p class="wp-block-paragraph">so um if any of the edges or vertices were repeated this would not be a simple path so let me just i</p>



<p class="wp-block-paragraph">would not be a simple path so let me just I don&#8217;t know let me just update this real fast let&#8217;s say</p>



<p class="wp-block-paragraph">we do oh what should we do let&#8217;s do I don&#8217;t know when we go from three to one to six to four</p>



<p class="wp-block-paragraph">let&#8217;s go back from four to six and then we&#8217;ll take the other edge back to four and then we&#8217;ll</p>



<p class="wp-block-paragraph">go up to 12 so this will be like um not a simple path if we say gosh I should have written this</p>



<p class="wp-block-paragraph">this down before i drew it three to one and then one to six and then six to four and then four back</p>



<p class="wp-block-paragraph">to six okay so i&#8217;m going to add another tuple so starting at four going back to six and taking</p>



<p class="wp-block-paragraph">that three edge i think is what we&#8217;re looking at and then another tuple to get back when we go from</p>



<p class="wp-block-paragraph">six to four and then take the um one cost edge and then once we&#8217;re at four then we can go four</p>



<p class="wp-block-paragraph">cost of two and then 12 to nine at a cost of six and then nine to 22 at a cost of two okay so</p>



<p class="wp-block-paragraph">i mean i&#8217;m just saying you can make a path where you just repeat a whole bunch of the edges and</p>



<p class="wp-block-paragraph">nodes and you&#8217;re just like going in a circle forever like whatever you really want it&#8217;s not</p>



<p class="wp-block-paragraph">necessarily going to be an efficient path or something that an algorithm should produce</p>



<p class="wp-block-paragraph">but you can have a path like that maybe your character is just going crazy in the game and</p>



<p class="wp-block-paragraph">because we repeat stuff on the previous slide.</p>



<p class="wp-block-paragraph">Since we did not repeat anything, this is a simple path.</p>



<p class="wp-block-paragraph">Okay, let&#8217;s see.</p>



<p class="wp-block-paragraph">Something else that I wanna talk about is a cyclic path.</p>



<p class="wp-block-paragraph">A cyclic path is basically a path</p>



<p class="wp-block-paragraph">where you start and end on the same node.</p>



<p class="wp-block-paragraph">Being able to find a cyclic path in a graph</p>



<p class="wp-block-paragraph">is a way that you can prove that the graph is itself cyclic.</p>



<p class="wp-block-paragraph">is itself cyclic. Let me try to get rid of this here. Yeah, there we go. Okay, so just</p>



<p class="wp-block-paragraph">pretend for the sake of argument that I&#8217;m just kind of looking around and I&#8217;m trying to find,</p>



<p class="wp-block-paragraph">you know, some path that proves I can start at the same node and end on that node without</p>



<p class="wp-block-paragraph">repeating edges. So let&#8217;s see. Right, so I&#8217;m going to do take the three and go to the six.</p>



<p class="wp-block-paragraph">to the six and then so i want to try if i start on the three then i want to try to find a way to get</p>



<p class="wp-block-paragraph">back to the three again so i go from three to six and then i can go from six to four</p>



<p class="wp-block-paragraph">and then if i go from four to six over here i&#8217;m not repeating that edge going from six to four i&#8217;m</p>



<p class="wp-block-paragraph">using a new edge from four to six and then i can go from six to three again not actually repeating</p>



<p class="wp-block-paragraph">means I have found a cycle in the graph. Let me just describe this path real fast in terms of</p>



<p class="wp-block-paragraph">edges. So we started on three. Oops. We started on three and then we went to six and it cost us three.</p>



<p class="wp-block-paragraph">And then once we were on six, we went to four. So I&#8217;m going to go from six to four. And we chose</p>



<p class="wp-block-paragraph">the edge that cost us four. And then once we were on the four, we just went backwards to the six.</p>



<p class="wp-block-paragraph">four going to six and we took the edge that cost three once we were on six we took the six to three</p>



<p class="wp-block-paragraph">edge so six to three whoops six to three edge and that cost us three yeah did I do that right</p>



<p class="wp-block-paragraph">when we go from the three to the six in the beginning I wrote down a three but I should</p>



<p class="wp-block-paragraph">have written down a two hopefully you cringed on my behalf right because I was I think that red</p>



<p class="wp-block-paragraph">on the left side so my brain was looking at the three but we were really taking the arrow that</p>



<p class="wp-block-paragraph">points down from the three to the six so there&#8217;s a two there let me just double check one more time</p>



<p class="wp-block-paragraph">six to four at cost of four four to six at cost of three six two three at cost of three</p>



<p class="wp-block-paragraph">so we have started and ended uh on the same node and therefore we have found a cycle in this graph</p>



<p class="wp-block-paragraph">which means this graph is cyclic what is cyclic just means it&#8217;s a graph that has a cycle</p>



<p class="wp-block-paragraph">It&#8217;s a graph that has a cycle anywhere inside of it.</p>



<p class="wp-block-paragraph">So this is a cyclic graph.</p>



<p class="wp-block-paragraph">Make sense?</p>



<p class="wp-block-paragraph">Okay, why is this important?</p>



<p class="wp-block-paragraph">Well, there&#8217;s kind of like a special type of graph called a DAG,</p>



<p class="wp-block-paragraph">which means a directed…</p>



<p class="wp-block-paragraph">Here, let me write this down real fast.</p>



<p class="wp-block-paragraph">On the next slide, so that we don&#8217;t get confused.</p>



<p class="wp-block-paragraph">On the next slide, I&#8217;m going to say we have a DAG</p>



<p class="wp-block-paragraph">is basically a directed…</p>



<p class="wp-block-paragraph">directed, acyclic graph. What does A mean when it&#8217;s in front of something? It just means it&#8217;s</p>



<p class="wp-block-paragraph">not that thing. So acyclic means not cyclic and then graph. So in some algorithms you are required</p>



<p class="wp-block-paragraph">to, you know, like have a DAG before you can even use the algorithm or if you&#8217;re being tested</p>



<p class="wp-block-paragraph">somewhere. So let&#8217;s just start by, you know, drawing like a little bit of a graph and we&#8217;ll</p>



<p class="wp-block-paragraph">have a graph that qualifies. So I have a little graph here. If it was empty,</p>



<p class="wp-block-paragraph">I don&#8217;t know if you could call it a DAG or not. I think I would because it&#8217;s empty. It could be</p>



<p class="wp-block-paragraph">directed. So we have like a graph here. I would call this a DAG because it&#8217;s a graph. We don&#8217;t</p>



<p class="wp-block-paragraph">have any edges, but like I could assume that this would be a directed graph. But just to make this</p>



<p class="wp-block-paragraph">a better example, let&#8217;s just say we have like two nodes here. And you could also probably assume</p>



<p class="wp-block-paragraph">DAG because you could assume that there are no edges in this graph but if we did add an edge</p>



<p class="wp-block-paragraph">a second from now then it would be directed not the best example but so let&#8217;s just add an edge here</p>



<p class="wp-block-paragraph">oh actually let&#8217;s add an edge that&#8217;s undirected real fast from from two to six and then maybe</p>



<p class="wp-block-paragraph">I&#8217;ll just kind of duplicate some of these we&#8217;ll do a couple more so I can just make this more</p>



<p class="wp-block-paragraph">so ask yourself is this a DAG directed acyclic well there are no cycles that I can see in the</p>



<p class="wp-block-paragraph">graph there&#8217;s no paths that you can find to kind of like end where you started but this is a it is</p>



<p class="wp-block-paragraph">a graph and I don&#8217;t see any cycles but it&#8217;s not directed because these edges don&#8217;t have direction</p>



<p class="wp-block-paragraph">so that means right away we have to upgrade every single edge to have direction so I guess I was</p>



<p class="wp-block-paragraph">going to draw a bunch more edges and now I&#8217;m just going to only draw this one edge</p>



<p class="wp-block-paragraph">So this is definitely a DAG if we just sort of do it like this, maybe another edge like this,</p>



<p class="wp-block-paragraph">because I don&#8217;t know about you, but I cannot find any path that allows me to start and end</p>



<p class="wp-block-paragraph">on the same node. Let&#8217;s just double check it. We&#8217;ll do the two. Can we find our way back to</p>



<p class="wp-block-paragraph">the two? No, because there are no incoming edges to the two. All right, that&#8217;s good. Let me just</p>



<p class="wp-block-paragraph">do a check here. What about the six? If we go out to the six, from the six to the four to the</p>



<p class="wp-block-paragraph">6 from the 6 to the 4 to the 11 it would have been dangerous if we could get to the 2 but we</p>



<p class="wp-block-paragraph">can&#8217;t even get to the 2 so that&#8217;s fine that means the 6 is okay we cannot find our way back there</p>



<p class="wp-block-paragraph">the 4 we can go to the 11 but we can&#8217;t go any further we&#8217;re at a dead end we can&#8217;t even go to</p>



<p class="wp-block-paragraph">the 6 that means the 4 can&#8217;t find its way back to itself where you can&#8217;t find a path that goes back</p>



<p class="wp-block-paragraph">the 11 has only incoming edges so that&#8217;s automatically you know a dead end so all of</p>



<p class="wp-block-paragraph">nodes qualify as we could not start and also end at that node with a single path so that&#8217;s good</p>



<p class="wp-block-paragraph">that means this is a DAG a directed acyclic graph if you want to make this into not a DAG just figure</p>



<p class="wp-block-paragraph">out how to add a path so that you end up with a cycle so what was the first thing we did the 2</p>



<p class="wp-block-paragraph">goes to the 6 goes to the 4 goes to 11 then it&#8217;s a dead end we could either add an edge from 11 to 2</p>



<p class="wp-block-paragraph">to make a cycle but that&#8217;s a little bit too easy right because if you see any pair of nodes</p>



<p class="wp-block-paragraph">right because if you see any pair of nodes with arrows kind of pointing back and forth between the</p>



<p class="wp-block-paragraph">two nodes then right away that alone is a cycle so I&#8217;m just going to maybe do an arrow or an edge</p>



<p class="wp-block-paragraph">pointing from four to two then it doesn&#8217;t look so much like a cycle although it&#8217;s not too hard</p>



<p class="wp-block-paragraph">to realize that there is a cycle in this graph in this graph so this is not a DAG let me show you</p>



<p class="wp-block-paragraph">and then from four to two.</p>



<p class="wp-block-paragraph">And therefore we would have a cycle.</p>



<p class="wp-block-paragraph">So this whole graph is not considered acyclic.</p>



<p class="wp-block-paragraph">This graph has a cycle.</p>



<p class="wp-block-paragraph">And if we want to do an edge-based path,</p>



<p class="wp-block-paragraph">we don&#8217;t have weights on this graph right now.</p>



<p class="wp-block-paragraph">So we could describe the path as such.</p>



<p class="wp-block-paragraph">We could say, start at two, go to six.</p>



<p class="wp-block-paragraph">And if your edge list is of a graph</p>



<p class="wp-block-paragraph">that doesn&#8217;t even have weight at all,</p>



<p class="wp-block-paragraph">then you don&#8217;t really need that third item in the tuple.</p>



<p class="wp-block-paragraph">item in the tuple you can just do a start node and a destination node this does kind of preclude</p>



<p class="wp-block-paragraph">you from having parallel edges you know two different edges that point from the same start</p>



<p class="wp-block-paragraph">node to the same end node so as i go from two to six and then from six to uh four and then from</p>



<p class="wp-block-paragraph">four to two and then we have a cycle and that&#8217;s it okay i think this is all i really wanted to</p>



<p class="wp-block-paragraph">talk about for this particular video in future videos we&#8217;re going to do algorithms and then</p>



<p class="wp-block-paragraph">some others up already that have graph properties and connectedness and definitions and things like</p>



<p class="wp-block-paragraph">that. So leave a comment asking about some algorithm or some property of a graph that</p>



<p class="wp-block-paragraph">you might be interested in. Otherwise, thank you so much for watching this video. I hope you learned</p>



<p class="wp-block-paragraph">a little bit of stuff. And I hope you had a little bit of fun. I&#8217;ll see you in the next video.</p>



<p class="wp-block-paragraph">Yeah, I&#8217;m gonna go eat some cookies. No, I shouldn&#8217;t do that. But I&#8217;m still going to.</p>



<p class="wp-block-paragraph">Hey everybody, thanks for watching this video again from the bottom of my heart.</p>



<p class="wp-block-paragraph">I really appreciate it.</p>



<p class="wp-block-paragraph">I do hope you did learn something and have some fun.</p>



<p class="wp-block-paragraph">If you could do me a please, a small little favor, could you please subscribe and follow</p>



<p class="wp-block-paragraph">this channel or these videos or whatever it is you do on the current social media website</p>



<p class="wp-block-paragraph">that you&#8217;re looking at right now.</p>



<p class="wp-block-paragraph">It would really mean the world to me and it&#8217;ll help make more videos and grow this community.</p>



<p class="wp-block-paragraph">So we&#8217;ll be able to do more videos, longer videos, better videos, or just I&#8217;ll be able</p>



<p class="wp-block-paragraph">better videos or just I&#8217;ll be able to keep making videos in general so please</p>



<p class="wp-block-paragraph">do do me a kindness and and subscribe you know sometimes I&#8217;m sleeping in the</p>



<p class="wp-block-paragraph">middle of the night and I just wake up because I know somebody subscribed or</p>



<p class="wp-block-paragraph">followed it just wakes me up and I get filled with joy that&#8217;s exactly what</p>



<p class="wp-block-paragraph">happens every single time so you could do it as a nice favor to me or you could</p>



<p class="wp-block-paragraph">you control me if you want to just wake me up in the middle of the night just</p>



<p class="wp-block-paragraph">subscribe and then I&#8217;ll just wake up I promise that&#8217;s what will happen also if</p>



<p class="wp-block-paragraph">if you look at the middle of the screen right now you should see a qr code which you can scan</p>



<p class="wp-block-paragraph">in order to go to the website which i think is also named somewhere at the bottom of this video</p>



<p class="wp-block-paragraph">and it&#8217;ll take you to my main website where you can just kind of like see all the videos i</p>



<p class="wp-block-paragraph">published and the services and tutorials and things that i offer and all that good stuff and</p>



<p class="wp-block-paragraph">if you have a suggestion for uh clarifications or errata or just future videos that you want to see</p>



<p class="wp-block-paragraph">Or if you just want to say, hey, what&#8217;s up?</p>



<p class="wp-block-paragraph">What&#8217;s going on?</p>



<p class="wp-block-paragraph">You know, just send me a comment, whatever.</p>



<p class="wp-block-paragraph">I also wake up for those in the middle of the night.</p>



<p class="wp-block-paragraph">I get, I wake up in a cold sweat and I&#8217;m like,</p>



<p class="wp-block-paragraph">it would really, it really mean the world to me.</p>



<p class="wp-block-paragraph">I would really appreciate it.</p>



<p class="wp-block-paragraph">So again, thank you so much for watching this video</p>



<p class="wp-block-paragraph">and enjoy the cool music as I fade into the darkness,</p>



<p class="wp-block-paragraph">which is coming for us all.</p>



<p class="wp-block-paragraph">so</p>



<p class="wp-block-paragraph">Thank you.</p>



<p class="wp-block-paragraph">I&#8217;m going to go ahead and get started.</p>



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/graph-paths-explained-node-vs-edge-based-simple-paths-cycles-and-dags/">Graph Paths Explained: Node vs Edge Based, Simple Paths, Cycles and DAGs</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/graph-paths-explained-node-vs-edge-based-simple-paths-cycles-and-dags/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
