Graph Terminology I
Learn about the fundamental concepts of graph theory, such as adjacency and paths.
We'll cover the following
Adjacency
For an edge that connects node to node , we say that is adjacent to , or that is a neighbor of . The edge is called incident to both and .
The number of neighbors of a node is called the degree of , written deg().
In the following example graph, is a neighbor of , as there is an edge . But is not a neighbor of , as there is no edge . The degree of node is deg, as it has two neighbors.
Get hands-on with 1400+ tech skills courses.