Graph Data Structure Intro (inc. adjacency list, adjacency matrix, incidence matrix)

preview_player
Показать описание
Graphs are collections of things and the relationships or connections between them. The data in a graph are called nodes or vertices. The connections between the nodes are called edges. See how to represent an adjacency list, adjacency matrix, and incidence matrix in JavaScript.

⭐JavaScript Tutorials Playlists⭐

-
We're busy people who learn to code, then practice by building projects for nonprofits. Learn Full-stack JavaScript, build a portfolio, and get great references with our open source community.

Рекомендации по теме
Комментарии
Автор

Graph representation uses nodes "a", "b", "c", and adjacency list uses nodes "1", "2", "3" : Confusing

OlivierSuire
Автор

If your examples contain a, b and c why not have the nodes contain these values. That would make this so much more clear...

philippalbrecht
Автор

I found the adjacency list and the adjacency matrix are so confusing. At 1:27 he says the a-b-c graph turning into Node1: Node2, Node 3; Node 2: Node1; Node3: Node3. How does that happen??
By the way, at 1:44 shouldn't it be a "{" instead of a "["??

ksc
Автор

Incidence Matrix
Directed Graph
He states:
-1 = Leaving Node
+1 = Entering Node

But the graph seems wrong because the -1 and +1 are switched. Am I the only one who thinks this ?

APC
Автор

I found this really good for understanding graph fast(before an exam). If I may suggest an improvement, it would be to cut out in the video editing the pause between definitions. Thanks for sharing!

bogdanlargeanu
Автор

adjancey list was confusing. you used a b c, and then used node1 node2 node3...

mazedesign
Автор

The explanation is very clear and easy to understand!

YuanxiangSong
Автор

Would have been much nicer if the JS examples were actually matching the picture on top, particularly with the A-B-C example, which they were most definitely NOT doing all the time - it ended up being more confusing, for no reason.

GiacomoSorbi
Автор

This is about on par with anything from free code camp. Living up to your reputation.

supremoluminary
Автор

Graphs also have the property of scale. Nodes of distances, edges, on, say, a road map, are to scale. The graph of a road map is scaled. Alternatively, a graph of, say, times of various methods of completing a process, are not to scale. Changes of the values of the an edge on a scale graph affect other edges. Not so on a non-scale graph.

k.chriscaldwell
Автор

AdjMat in second example starts with a "[" and ends with a "}".

andrewmusholt
Автор

Thank you so much for the excellent tutorial Beau, this helped me out a lot!

wolnirroche
Автор

(B)Node 1: Node 2, Node 3
(A)Node 2: Node 1
(C)Node 3: Node 3

MartinGarcia-bzoy
Автор

I'm so happy when he said "here's how to represent them in javascript" 😄
javascript ftw

wepranaga
Автор

Thank you for this amazing video.
We will be more pleased if you make it more clear and understandable.

farhadanwari
Автор

Hi Beau, thanks for the video. I think is great.
Correct me if I'm wrong but it seems the js implementation of the adjacency matrix (2:25) is different from the adjacency matrix beign discussed (2:14).
I may be worng as I have no experience with graphs and js.

adetokunboarogbonlo
Автор

Absolutely confusing ... author uses a, b and c and then uses 1, 2 and 3. Moreover the first part of the video is inaccurate as well ....

PublicUser
Автор

Thanks! It is useful, cuz I am afraid I did not know about incidence matrix.

redelectro
Автор

Where is his next video on traversal ??

sahil
Автор

Sweet graph I needed this video could you do more on graphs

biggapoww