Programming ConceptsGraph

A graph is a data structure made up of nodes (vertices) and connections (edges). Graphs are used in social networks, maps, and recommendation systems.

const graph = {
  A: ['B', 'C'],
  B: ['A', 'D'],
  C: ['A', 'D'],
  D: ['B', 'C']
};
console.log(graph['A']); // Output: ['B', 'C']