Two nodes are adjacent within a graph if there exists an edge between them. That is, the two nodes are connected.
Mathematical Definition
If a pair of nodes exists such that , then and are called adjacent1
1 min read
Two nodes are adjacent within a graph if there exists an edge between them. That is, the two nodes are connected.
If a pair of nodes {n1,n2} exists such that {n1,n2}∈E, then n1 and n2 are called adjacent1