Network (Graph)
A Network is a collection of connected nodes
Last updated
Was this helpful?
A Network is a collection of connected nodes
Last updated
Was this helpful?
A Network is a collection of connected nodes. nodes = elements
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.
A Social Network is groups of people connected together.
Family Network:
Friends Network:
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...
Networks are used to represent more complicated relationships and normally used when other data structures simply will not work.
Directed Networks: Connections between nodes flow in a specific direction
Water always flows in one direction from a higher point to a lower point
Twitters following/follower system
Undirected Networks: Connections between nodes flow in both directions
Facebooks friend system
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:
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.
Kyle's Facebook Friend Profile:
Wife, Kids, parents, grandparents, cousins, aunts, uncles, inlaws
childhood friends, work friends, hobbie friends
Dank Meme & Programming Network:
weirdosmore weirdos
Water Tower -> Homes -> Sewer
I follow the @PresidentOfTheUnitedStates
The President Of The United States does Not follow me
I send a friend request to uncle Jim Bob and he accepts
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