Network (Graph)
A Network is a collection of connected nodes
What is a Network (Graph) ð
A Network is a collection of connected nodes. nodes = elements
Earth ð ð ð
Viewing earth from the international space station, there is clusters of light in a sea of darkness. These pockets of light are highly connected Networks of people and things people make.
Social Network ð
A Social Network is groups of people connected together.
Kyle's Facebook Friend Profile: ð
Family Network:
âĪïļWife, Kids, parents, grandparents, cousins, aunts, uncles, inlawsâĪïļ
Friends Network:
childhood friendsðž, work friendsð·ââïļ, hobbie friendsððŪ
Dank Meme & Programming Network: ðŊ
ðweirdosðĪŠmore weirdosðĪĨ
I'm personally connected to all these people above in a Network. All of the people im connected to are also connected to their own people. and all of those people are... etc, etc, etc...
I Need a Map, A Map of the Internet! ð§
Networks are used to represent more complicated relationships and normally used when other data structures simply will not work.
Types of Networks ðŽïļ ðŠïļ
Directed Networks: Connections between nodes flow in a specific direction
Water always flows in one direction from a higher point to a lower point
ðïļ Water Tower -> Homes -> Sewer ðïļ
Twitters following/follower system
I follow the @PresidentOfTheUnitedStates ðķ
The President Of The United States does Not follow me ðŦ
Undirected Networks: Connections between nodes flow in both directions
Facebooks friend system
I send a friend request to uncle Jim Bob and he accepts ðŊââïļ
Linked List vs Tree vs Networkð ðē ð
Linked List and Trees can be represented as simple Networks. The following example explains the differences between the 3 as different types of networks.
Example:
7 Nodes = A, B, C, D, E, F, G âīïļ âīïļ âīïļ âīïļ âīïļ âīïļ âīïļ âīïļ
Linked Lists: a simple directed network where each node flows to the next node. ð
Trees: are a directed network where the starting node flows down to multiple nodes ðð
Networks: can be used to diagram highly connected systemsðððððĪ
The key takeaway is all systems have the same number of Nodes but a different number of Connections. The Connections are what make the data structure a linked list, tree or network.
Last updated