Math 2.0

definition

Distance in a graph

Definition

Let GG be a graph and let u,vu, v be vertices of GG. If vv is reachable from uu, the distance d(u,v)d(u, v) is the smallest length of a walk from uu to vv. If vv is not reachable from uu, then d(u,v)=∞d(u, v) = \infty.

Remarks

A shortest walk is a path, so d(u,v)d(u, v) is also the smallest length of a path. Such a path is a geodesic. On a connected graph, dd is a metric: d(u,v)=0d(u, v) = 0 only for u=vu = v, it is symmetric, and it satisfies the triangle inequality.

Explanations

L1 human

The distance between two vertices is the smallest number of edges that you must cross to go from one to the other. In the cycle C6C_6, opposite vertices have distance 33.

What this node needs for W2
  • edge instance_of in: one example (0 of 1)
  • edge not_instance_of in: one non-example that fails one clause (0 of 1)

The writing levels say how complete the text of a node is. They do not measure its truth.

What this needs

To read this node, read these 4 nodes in this order. The foundations come first, and the list ends with this node.

Each node uses the nodes above it. The colour of the bar on a box shows the evidence level, and the box also gives it as text. The list below has the same nodes.
  • no evidence level
  1. Graph definition
  2. Walk definition
  3. Reachability definition
  4. Distance in a graph definition

Sources

  1. Web https://en.wikipedia.org/wiki/Distance_(graph_theory), lead section