<?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>directed graphs Archives - NeuralLantern.com</title>
	<atom:link href="https://www.NeuralLantern.com/tag/directed-graphs/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.NeuralLantern.com/tag/directed-graphs/</link>
	<description></description>
	<lastBuildDate>Mon, 09 Nov 2026 06:56:49 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://www.NeuralLantern.com/wp-content/uploads/2025/04/cropped-2025-04-04-Lantern-03-32x32.png</url>
	<title>directed graphs Archives - NeuralLantern.com</title>
	<link>https://www.NeuralLantern.com/tag/directed-graphs/</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Representing a Directed Unweighted Graph with an Adjacency Matrix</title>
		<link>https://www.NeuralLantern.com/representing-a-directed-unweighted-graph-with-an-adjacency-matrix/</link>
					<comments>https://www.NeuralLantern.com/representing-a-directed-unweighted-graph-with-an-adjacency-matrix/#respond</comments>
		
		<dc:creator><![CDATA[mike]]></dc:creator>
		<pubDate>Mon, 09 Nov 2026 06:56:48 +0000</pubDate>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[Data Structures]]></category>
		<category><![CDATA[Graphs]]></category>
		<category><![CDATA[Videos]]></category>
		<category><![CDATA[adjacency matrix]]></category>
		<category><![CDATA[adjacency matrix tutorial]]></category>
		<category><![CDATA[algorithms]]></category>
		<category><![CDATA[computer science]]></category>
		<category><![CDATA[data structures]]></category>
		<category><![CDATA[directed graph]]></category>
		<category><![CDATA[directed graphs]]></category>
		<category><![CDATA[graph representation]]></category>
		<category><![CDATA[graph theory]]></category>
		<category><![CDATA[unweighted graph]]></category>
		<guid isPermaLink="false">https://www.NeuralLantern.com/?p=444</guid>

					<description><![CDATA[<p>A directed unweighted graph can be stored in an adjacency matrix where each row is a starting node and each column is an ending node. A value of 0 means no edge and 1 means an edge exists. Because the structure is really a contiguous one dimensional array under the hood, reading or writing any cell is constant time. Self connections are not implied unless explicitly added, and the matrix is not symmetric the way an undirected graph matrix would be.</p>
<p>The post <a href="https://www.NeuralLantern.com/representing-a-directed-unweighted-graph-with-an-adjacency-matrix/">Representing a Directed Unweighted Graph with an Adjacency Matrix</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="Representing a Directed Unweighted Graph with an Adjacency Matrix" width="1380" height="776" src="https://www.youtube.com/embed/oa5PfA1gANo?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">Learn how to represent a directed unweighted graph using an adjacency matrix. We cover why a two dimensional matrix is really just a one dimensional array under the hood, making cell access and updates extremely fast. For directed graphs the starting node is the row and the ending node is the column. A zero means no connection and a one means an edge exists. Self connections are not implied by default. Adding or removing an edge is constant time. Directed graphs do not produce a symmetric matrix like undirected ones. This is one practical way your program can store and work with a graph. If you have been following the previous videos on undirected graphs this builds directly on that. The next video will cover directed weighted graphs with an adjacency matrix. Thanks for watching and I hope you picked up something useful.</p>



<p class="wp-block-paragraph">00:00 Intro to Directed Unweighted Graphs<br>00:01 Matrix Stored as Contiguous 1D Array<br>03:09 Building the Adjacency Matrix<br>04:25 Filling Outgoing Edges Node by Node<br>09:43 Directed Graphs Are Not Symmetric<br>10:36 Adding a New Edge<br>11:08 Adding Self-Connections<br>11:53 Removing an Edge<br>13:04 Adding Bidirectional Edges<br>15:28 Next Video 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">Hello there. Let&#8217;s talk about representing a directed, unweighted graph inside your</p>



<p class="wp-block-paragraph">machine using an adjacency matrix. It&#8217;s going to be fun.</p>



<p class="wp-block-paragraph">Okay, sorry about that. Anyway, so I hope you&#8217;ve been watching my previous videos.</p>



<p class="wp-block-paragraph">We covered already how to do an undirected weighted graph and also unweighted graph</p>



<p class="wp-block-paragraph">using an adjacent</p>



<p class="wp-block-paragraph">and also unweighted graph using an adjacency matrix we&#8217;re going to basically represent a graph</p>



<p class="wp-block-paragraph">inside of the machine like this is one of the ways that your machine can do it we&#8217;re not going to</p>



<p class="wp-block-paragraph">talk about code exactly but you know kind of allude to code but this is this is a really good</p>



<p class="wp-block-paragraph">way to you know get started in practicing the concept okay first thing i want to say i&#8217;ve said</p>



<p class="wp-block-paragraph">this in my previous videos i&#8217;m sorry if you&#8217;ve been watching all of them is that this matrix</p>



<p class="wp-block-paragraph">this two-dimensional matrix it&#8217;s really just a one-dimensional array think about this we have</p>



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



<p class="wp-block-paragraph">array think about this we have some numbers in an array I&#8217;m going to put six numbers in there</p>



<p class="wp-block-paragraph">we could just as easily represent this as a two-dimensional matrix a two-dimensional array</p>



<p class="wp-block-paragraph">right it&#8217;s the same amount of numbers what&#8217;s really happening under the hood when you have</p>



<p class="wp-block-paragraph">a two-dimensional array is your computer just has it as a one-dimensional array so the question is</p>



<p class="wp-block-paragraph">why is that useful oh hang on okay anyway so what i wanted to say is that you see</p>



<p class="wp-block-paragraph">So what I wanted to say is that you see a two-dimensional matrix,</p>



<p class="wp-block-paragraph">but really what&#8217;s happening inside your computer is a one-dimensional matrix.</p>



<p class="wp-block-paragraph">I&#8217;m just going to make a one-dimensional matrix.</p>



<p class="wp-block-paragraph">I&#8217;m going to say we&#8217;re putting numbers in the matrix.</p>



<p class="wp-block-paragraph">I&#8217;m just going to put like, you know, six hashes or pound signs or hashtags in the modern era.</p>



<p class="wp-block-paragraph">So a one-dimensional array could be represented as a two-dimensional matrix</p>



<p class="wp-block-paragraph">if we just reformat it a little bit.</p>



<p class="wp-block-paragraph">last part of that first array on a second line that&#8217;s what&#8217;s happening in the computer</p>



<p class="wp-block-paragraph">even if you&#8217;re working with a two-dimensional array in your computer it&#8217;s still just a</p>



<p class="wp-block-paragraph">one-dimensional array under the hood which means it&#8217;s incredibly fast to access one particular</p>



<p class="wp-block-paragraph">index not necessarily to scooch things remove things and add things but if i wanted to go to</p>



<p class="wp-block-paragraph">index three and a one-dimensional array if you know time complexities already that&#8217;s really fast</p>



<p class="wp-block-paragraph">That&#8217;s constant time. We&#8217;ll do time complexities in another video, but um if</p>



<p class="wp-block-paragraph">but um if i wanted to access you know a certain row in a certain column intuitively you think</p>



<p class="wp-block-paragraph">well i gotta like scan down and scan to the right uh so maybe it&#8217;s slower but it&#8217;s not because it&#8217;s</p>



<p class="wp-block-paragraph">still just going to be math to find exactly the right offset in uh your two-dimensional matrix</p>



<p class="wp-block-paragraph">because it&#8217;s really a one-dimensional array all of the items in this array i didn&#8217;t say this in</p>



<p class="wp-block-paragraph">previous videos all the items in this array are contiguously allocated so all we really have to</p>



<p class="wp-block-paragraph">do is compute an offset from some</p>



<p class="wp-block-paragraph">compute an offset from some starting memory location so it&#8217;s incredibly fast</p>



<p class="wp-block-paragraph">to read a cell in this matrix and to modify a cell in this matrix you&#8217;ll see in a second</p>



<p class="wp-block-paragraph">that&#8217;s well you&#8217;ll see in several minutes why that&#8217;s one useful feature of a of an adjacency</p>



<p class="wp-block-paragraph">matrix okay so adjacency matrix uh suppose you&#8217;re presented with this matrix you see</p>



<p class="wp-block-paragraph">i&#8217;m sorry with this diagram you see right here this is a graph it&#8217;s got direction on all the</p>



<p class="wp-block-paragraph">edges i really hope i didn&#8217;t forget any particular edge i think i&#8217;ve got arrows on all of them</p>



<p class="wp-block-paragraph">think i&#8217;ve got arrows on all of them we&#8217;ve got nodes and edges and i just</p>



<p class="wp-block-paragraph">need to figure out how can i put that into a matrix so my computer</p>



<p class="wp-block-paragraph">my program understands the graph and it it has a representation of the graph</p>



<p class="wp-block-paragraph">so with directed graphs the start row uh sorry the start node and the end node</p>



<p class="wp-block-paragraph">actually matter a lot in my other videos where we talked about</p>



<p class="wp-block-paragraph">undirected graphs we could just easily swap the row and the column</p>



<p class="wp-block-paragraph">in this matrix and it didn&#8217;t really make a difference because the whole matrix</p>



<p class="wp-block-paragraph">was going to end up being a mirror anyway.</p>



<p class="wp-block-paragraph">was going to end up being a mirror anyway but that&#8217;s not going to happen this time so what i&#8217;m</p>



<p class="wp-block-paragraph">going to say for the way that i like to do things is the starting node is the row and the ending</p>



<p class="wp-block-paragraph">node is the column so this is also an unweighted diagram an unweighted graph so we don&#8217;t really</p>



<p class="wp-block-paragraph">need to store floats or infinities or anything like we did in the other video we can just say</p>



<p class="wp-block-paragraph">that no connection means no connection is a zero and yes connection is a one of course you could</p>



<p class="wp-block-paragraph">You could still do that with floats if you want to,</p>



<p class="wp-block-paragraph">of course you could still do that with floats if you want to but whatever you could have a a matrix</p>



<p class="wp-block-paragraph">of booleans if you really wanted to like true and false and true and false but you know for this</p>



<p class="wp-block-paragraph">diagram we&#8217;re going to say 0 and 1. so i&#8217;m going to start with node number one and node number one</p>



<p class="wp-block-paragraph">therefore is going to be the the source node and i&#8217;m going to see where does where does it go out</p>



<p class="wp-block-paragraph">to what edges are outbound from the number one so the start node is the one that means the row is</p>



<p class="wp-block-paragraph">one that i&#8217;m working with and the destination nodes or the end nodes or the sync nodes those</p>



<p class="wp-block-paragraph">Those will be the calls.</p>



<p class="wp-block-paragraph">nodes are the sync nodes those will be the columns so i&#8217;m not really going to look at how six is</p>



<p class="wp-block-paragraph">coming into one because i&#8217;m only interested right now in what uh what one starts uh in terms of an</p>



<p class="wp-block-paragraph">edge you know what edges come out of one so one forget about the six and the two those are incoming</p>



<p class="wp-block-paragraph">edges i&#8217;m just going to look at the outgoing edges so one goes out to three and four and five so</p>



<p class="wp-block-paragraph">by default in our diagrams at least at this point we&#8217;re going to say</p>



<p class="wp-block-paragraph">our diagrams at least at this point we&#8217;re going to say that self connections are not implied</p>



<p class="wp-block-paragraph">meaning by default if i don&#8217;t see an actual edge on the diagram going from one back into one then</p>



<p class="wp-block-paragraph">i&#8217;m going to say one is not connected to itself so i&#8217;m gonna put a zero to say there&#8217;s no connection</p>



<p class="wp-block-paragraph">uh one going to uh the two that&#8217;s not happening because two is actually going into one</p>



<p class="wp-block-paragraph">so i&#8217;m going to put another zero then uh there uh one going to three that is happening</p>



<p class="wp-block-paragraph">uh one going to three that is happening so i&#8217;m gonna put a one so one does have an outbound</p>



<p class="wp-block-paragraph">connection or an edge to three so i&#8217;m gonna put a one in that row and column</p>



<p class="wp-block-paragraph">one going to four uh yes so i&#8217;m gonna put a one one going to five uh yes so i&#8217;m gonna put a one</p>



<p class="wp-block-paragraph">there one going to six uh no so i&#8217;m gonna put a zero there i should have put you know</p>



<p class="wp-block-paragraph">edges that go back and forth uh to make this more interesting but you can probably imagine</p>



<p class="wp-block-paragraph">imagine well i&#8217;ll add that maybe later in this video so one going to seven uh nope someone put</p>



<p class="wp-block-paragraph">a zero so that&#8217;s the first row we represented all of the outbound edges from one to some other node</p>



<p class="wp-block-paragraph">and we used a zero to say it doesn&#8217;t exist and a one to say it does exist so then we just move on</p>



<p class="wp-block-paragraph">to the two so if i&#8217;m focusing on the two node then i&#8217;m on the two row and its outgoing connections</p>



<p class="wp-block-paragraph">are going to be represented in the columns.</p>



<p class="wp-block-paragraph">in the columns so does two go to one yes I&#8217;m going to put a one there does two go to itself</p>



<p class="wp-block-paragraph">self-connections are not implied at this point and then uh hang on a second</p>



<p class="wp-block-paragraph">does two go to three um nope because three goes into two and not the other way around</p>



<p class="wp-block-paragraph">uh we&#8217;ll add those other edges in a second does two go to four nope does two go to five</p>



<p class="wp-block-paragraph">nope there&#8217;s two</p>



<p class="wp-block-paragraph">nope does two go to six um i don&#8217;t see that so i&#8217;m going to say nope and then does two go to seven</p>



<p class="wp-block-paragraph">uh yes i&#8217;m going to put a one so now we&#8217;re done with the two um this is a directed graph by the</p>



<p class="wp-block-paragraph">way so like i said about my previous videos we will not see a mirror at least we won&#8217;t necessarily</p>



<p class="wp-block-paragraph">see a mirror we might accidentally make a mirror depending on what the graph is but we&#8217;re not going</p>



<p class="wp-block-paragraph">to see a mirror. So we have to do this whole graph with no shortcuts. So the</p>



<p class="wp-block-paragraph">shortcuts so the three uh does it go out to the one that&#8217;s a no does it go out to the two</p>



<p class="wp-block-paragraph">um where the heck is the three oh yeah it goes out to the two</p>



<p class="wp-block-paragraph">uh no implied self-connections three goes to the four nope three goes to the five yes</p>



<p class="wp-block-paragraph">3 goes to the 6</p>



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



<p class="wp-block-paragraph">3 goes to the 7</p>



<p class="wp-block-paragraph">uh three goes to the seven nope okay so now we&#8217;re done with the three</p>



<p class="wp-block-paragraph">and then we&#8217;ll say now does four go to the one i&#8217;m looking at the four where the heck&#8217;s the four</p>



<p class="wp-block-paragraph">i&#8217;m losing the four oh four doesn&#8217;t go anywhere except for the seven so i can actually just put</p>



<p class="wp-block-paragraph">like zeros in this whole thing you know just to save a little time oh god there we go but the</p>



<p class="wp-block-paragraph">four does go to the seventh. I&#8217;m going to put a one right there. Okay.</p>



<p class="wp-block-paragraph">the sevens i&#8217;m gonna put a one right there okay so uh the five um it has outbound connections i&#8217;m</p>



<p class="wp-block-paragraph">gonna i&#8217;m gonna be cheap here i&#8217;m gonna be cheesy the five goes to six and seven so i&#8217;m just gonna</p>



<p class="wp-block-paragraph">put zeros everywhere else so whoops in fact i probably could have just copied that whole row</p>



<p class="wp-block-paragraph">of zeros and then just overwrote the last two but i guess so the five goes to the six that&#8217;s a yes</p>



<p class="wp-block-paragraph">The 5 goes to the 7. That&#8217;s a yes also.</p>



<p class="wp-block-paragraph">the seven that&#8217;s a yes also and then we&#8217;re ready for the six the six has three outbound connections</p>



<p class="wp-block-paragraph">one three and seven so i&#8217;m just gonna you know what i&#8217;m just gonna copy a whole row i wish i</p>



<p class="wp-block-paragraph">had a whole row of zeros and i&#8217;m gonna maybe change that to a zero real fast and then i&#8217;m</p>



<p class="wp-block-paragraph">gonna say all right where does where does six actually connect to let&#8217;s change those zeros to</p>



<p class="wp-block-paragraph">ones six connects to the uh the one and the three and the seven</p>



<p class="wp-block-paragraph">and the 7 okay so 1 goes to 1 3 goes to 1 and 7 goes to 1 okay then the 7 uh has no outbound</p>



<p class="wp-block-paragraph">connections so this is indeed a row of zeros maybe i could have done that one first it would</p>



<p class="wp-block-paragraph">have been fun oh well uh notice one more time that there&#8217;s no mirror so if we like you know</p>



<p class="wp-block-paragraph">if you trace your eyes along this identity line right here and you were expecting to see a mirror</p>



<p class="wp-block-paragraph">you would be sadly disappointed.</p>



<p class="wp-block-paragraph">a mirror you would be sadly disappointed because what would actually happen is not a mirror let me</p>



<p class="wp-block-paragraph">do the highlighter here and we&#8217;ll say we have like an identity line that goes down the middle</p>



<p class="wp-block-paragraph">and then i&#8217;ll just try to highlight some stuff let&#8217;s see the three four five six over here on row</p>



<p class="wp-block-paragraph">uh one and and those columns let&#8217;s go now to uh column one and notice how it&#8217;s like not the same</p>



<p class="wp-block-paragraph">three four five six so that&#8217;s not</p>



<p class="wp-block-paragraph">five six so that&#8217;s not a mirror because those numbers don&#8217;t match so there&#8217;s no mirror in</p>



<p class="wp-block-paragraph">directed graphs in terms of the matrix anyway let&#8217;s see i&#8217;m going to get rid of these little</p>



<p class="wp-block-paragraph">pound signs these hashtags uh the next question is uh let&#8217;s do a self-connect how do we add an</p>



<p class="wp-block-paragraph">edge like if i wanted to add an edge from uh you know one to seven for example actually let me</p>



<p class="wp-block-paragraph">duplicate this first, and then we&#8217;ll work on it.</p>



<p class="wp-block-paragraph">first and then we&#8217;ll work on it if i just wanted to add a brand new edge going from one to seven</p>



<p class="wp-block-paragraph">uh then i just have to make sure that i look at the row one and then look at the seven column</p>



<p class="wp-block-paragraph">and then just change that value to a one to say did i do that yeah to say that uh the edge now</p>



<p class="wp-block-paragraph">exists right so that&#8217;s pretty easy to add a brand new edge let&#8217;s look at self connects now just in</p>



<p class="wp-block-paragraph">in case um if i wanted to say that four connects to itself i have to do an arrow</p>



<p class="wp-block-paragraph">4 connects to itself. I have to do an arrow by the way. Did I do an arrow on the last one?</p>



<p class="wp-block-paragraph">Yeah, okay. 4, we&#8217;re saying now it connects to 4. So before we assumed that there were no</p>



<p class="wp-block-paragraph">self-connections by default. So all the nodes had no self-connections. But the 4, we just added</p>



<p class="wp-block-paragraph">a self-connection. So that means right here, that 0 is going to change to a 1. Pretty easy and fast</p>



<p class="wp-block-paragraph">to add an edge. And by the way, how fast was it to just access a cell and modify a value?</p>



<p class="wp-block-paragraph">modify a value it&#8217;s constant time again big O is going to happen in other videos but uh this</p>



<p class="wp-block-paragraph">is lightning fast for adding and removing edges okay so then the other thing is um let me see</p>



<p class="wp-block-paragraph">can I do oh I gotta get rid of that how do we remove an edge oh bro bro what&#8217;s happening here</p>



<p class="wp-block-paragraph">just select that oh how do we remove an edge we talked about this in other videos</p>



<p class="wp-block-paragraph">we talked about this in other videos for our adjacency matrix but it&#8217;s pretty easy we just say</p>



<p class="wp-block-paragraph">all right suppose i just want to kill this edge going from three to two so now there&#8217;s</p>



<p class="wp-block-paragraph">no connection no edge going from three to two um well i just have to go find the appropriate</p>



<p class="wp-block-paragraph">part of the matrix and that&#8217;s it so row three because three was the start node or the source</p>



<p class="wp-block-paragraph">node row three and then two is the destination node so i&#8217;m just gonna like overwrite that with</p>



<p class="wp-block-paragraph">the zero and now we have effectively removed an edge remember the computer doesn&#8217;t actually</p>



<p class="wp-block-paragraph">See you next time.</p>



<p class="wp-block-paragraph">Remember, the computer doesn&#8217;t actually see this diagram that you&#8217;re looking at on the left.</p>



<p class="wp-block-paragraph">The computer just has the matrix.</p>



<p class="wp-block-paragraph">The computer doesn&#8217;t really even need to know that the 3 is on top visually.</p>



<p class="wp-block-paragraph">It just needs to know what the 3 is actually connected to.</p>



<p class="wp-block-paragraph">At least most applications of graphs.</p>



<p class="wp-block-paragraph">There are some where it&#8217;s more visual, and so there needs to be some coordinates.</p>



<p class="wp-block-paragraph">But just the easiest and most simple way right here with an adjacency matrix doesn&#8217;t need that.</p>



<p class="wp-block-paragraph">Okay, so then the next thing I want to do is&#8230;</p>



<p class="wp-block-paragraph">is um i want to add edges that kind of like point towards you know two nodes that sort of point</p>



<p class="wp-block-paragraph">towards each other like you know opposing is this going to work yeah opposing uh edges that&#8217;s not a</p>



<p class="wp-block-paragraph">technical term so suppose for the sake of argument that you&#8217;re looking at the three and you say well</p>



<p class="wp-block-paragraph">the three can go outbound to the two but can the two go outbound to the three yeah totally</p>



<p class="wp-block-paragraph">Okay, so I now have two edges, each going in a different direction between the 3 and the 2.</p>



<p class="wp-block-paragraph">And by the way, in your mind, you might be thinking,</p>



<p class="wp-block-paragraph">hey, isn&#8217;t that what undirected graphs are doing?</p>



<p class="wp-block-paragraph">Yeah, basically, you have just an edge that goes in both directions.</p>



<p class="wp-block-paragraph">Here we have to draw two separate edges.</p>



<p class="wp-block-paragraph">Then we just have to update the matrix to match.</p>



<p class="wp-block-paragraph">So I added an edge going from 3 to 2.</p>



<p class="wp-block-paragraph">So I&#8217;m going to go row 3, and then column 2, and&#8230;</p>



<p class="wp-block-paragraph">Oh, sorry, sorry.</p>



<p class="wp-block-paragraph">originally which worked from three to two that&#8217;s why is that what that&#8217;s why</p>



<p class="wp-block-paragraph">there&#8217;s a one there but now I just added an edge from two to three so we look at</p>



<p class="wp-block-paragraph">row two and then column three and then I update that to match so that zero became</p>



<p class="wp-block-paragraph">a one and it did become a little bit more like a mirror if we went ahead and</p>



<p class="wp-block-paragraph">added these like you know opposing edges on every single pair of nodes then the</p>



<p class="wp-block-paragraph">matrix would start to look like a mirror anyways what else can I talk about we&#8217;re</p>



<p class="wp-block-paragraph">We&#8217;re at about 16 minutes.</p>



<p class="wp-block-paragraph">about we&#8217;re at about 16 minutes and i&#8217;ve lost my mouse cursor what the heck oh there we go i need</p>



<p class="wp-block-paragraph">i need accessibility controls you know it&#8217;s true actually i really need glasses i&#8217;ve needed glasses</p>



<p class="wp-block-paragraph">for a couple of years maybe like five years and for some reason i just can&#8217;t get myself to go so</p>



<p class="wp-block-paragraph">what&#8217;s happening now is when people show me memes on their phones my face goes it goes backwards</p>



<p class="wp-block-paragraph">like this it&#8217;s like a it&#8217;s like a repellent for my face if you show me a meme i&#8217;m like</p>



<p class="wp-block-paragraph">me a meme i&#8217;m like not not fun to live that way so i gotta get glasses should i get a chain i want</p>



<p class="wp-block-paragraph">a gold chain that&#8217;s like studded and like blinged out and then like i have the glasses here only</p>



<p class="wp-block-paragraph">when i need to read and then it hangs the rest of the time and it maybe it plays music or something</p>



<p class="wp-block-paragraph">i don&#8217;t know i don&#8217;t think i&#8217;m gonna go that far so uh when we did undirected unweighted i&#8217;m just</p>



<p class="wp-block-paragraph">trying to make sure that i didn&#8217;t forget anything there&#8217;s no cheesy broccoli in this video directed</p>



<p class="wp-block-paragraph">and unweighted. Yeah, I guess that was it.</p>



<p class="wp-block-paragraph">weighted yeah i guess that was it okay so we&#8217;re at the end of this particular video i&#8217;m going to do</p>



<p class="wp-block-paragraph">one more before we shift topics the next one is going to be how to represent a directed and</p>



<p class="wp-block-paragraph">weighted graph inside the machine um using an adjacency matrix okay thank you for watching</p>



<p class="wp-block-paragraph">this video i hope you learned a little bit of stuff and had a little bit of fun i&#8217;ll see you</p>



<p class="wp-block-paragraph">soon i&#8217;m gonna go have a burrito no i&#8217;m not i&#8217;m just gonna keep recording hey everybody</p>



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



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



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



<p class="wp-block-paragraph">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">Thank you.</p>



<p class="wp-block-paragraph">or just i&#8217;ll be able to keep making videos in general so please do do me a kindness and uh and</p>



<p class="wp-block-paragraph">subscribe you know sometimes i&#8217;m sleeping in the middle of the night and i just wake up because i</p>



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



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



<p class="wp-block-paragraph">me if you want to just wake me up in the middle of the night just subscribe and then i&#8217;ll i&#8217;ll</p>



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



<p class="wp-block-paragraph">right now you should see a</p>



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



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



<p class="wp-block-paragraph">take you to my main website where you can just kind of like see all the videos I published and</p>



<p class="wp-block-paragraph">the services and tutorials and things that I offer and all that good stuff and uh if you have a</p>



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



<p class="wp-block-paragraph">leave a comment, or if you just want to say, hey, what&#8217;s up? What&#8217;s going on?</p>



<p class="wp-block-paragraph">to 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 it so again thank you so much for</p>



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



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



<p class="wp-block-paragraph">Thank you.</p>
<p>The post <a href="https://www.NeuralLantern.com/representing-a-directed-unweighted-graph-with-an-adjacency-matrix/">Representing a Directed Unweighted Graph with an Adjacency Matrix</a> appeared first on <a href="https://www.NeuralLantern.com">NeuralLantern.com</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.NeuralLantern.com/representing-a-directed-unweighted-graph-with-an-adjacency-matrix/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
