Polkuetäisyys
Polkuetäisyys, meaning "path distance" in Finnish, is a concept in graph theory that refers to the shortest path between two vertices in a graph. It is often denoted as d(u, v), where u and v are the two vertices in question. This distance is typically measured by the number of edges in the shortest path. If there is no path between two vertices, the polkuetäisyys is considered to be infinite.
The concept of polkuetäisyys is fundamental to many graph algorithms. For example, finding the shortest path
In an unweighted graph, where all edges have a uniform weight (often considered as 1), the polkuetäisyys