In a graph, there exist some nodes. Nodes connect with each other by edges. For example, I can connect with you through Dev Com (lol).
The children of a node can be to the left, right, upper, or lower positions. For instance, in a grid, a node's neighbors can be in the left, right, upper, or lower directions.
A graph can be compared to a matrix. To visualize this, you can create a table and treat each cell as a node.
What is a Node?
A node is a combination of a row and a column.
Top comments (0)