Label

In graph theory, labels help identify and describe the elements of a graph, making it easier to analyse relationships and structures. Labels can take the form of numbers, letters, words, or visual markers.

definition label in graph

Updated 17 February 2025

TL;DR (Too Long; Didn't Read)

A label in graph theory is a visual, numeric, or textual identifier assigned to nodes (vertices) or edges in a graph to provide meaningful information.

Defining Label in Graph Theory

A label in graph theory is a marker-such as a number, letter, word, or symbol-used to identify vertices or edges in a graph. Labels serve various purposes, including:

  • Differentiating nodes and edges in a complex graph
  • Representing weights or costs in weighted graphs
  • Classifying categories or relationships between entities

Labelling is essential in areas like network analysis, optimisation problems, and machine learning, where structured data representation is crucial.

Synonyms for label

marker, mark, tag

Specialised into

identifier, weight, colour

For many applications, the given labels are meaningful in the associated domain.

Examples

Identifier of an edge, a unique label for instance a number or letter.

Labels weighted graph represent the cost of traversing between the endpoints of an edge.

Values of vertices visualised by size, shape, colour or gradient.

Graph colouring example
Figure 1. Example network with vertex colouring and labels a, b, c and d.