Documentation

FormalConjecturesForMathlib.Combinatorics.SimpleGraph.Eccentricity

noncomputable def SimpleGraph.maxEccentricityVertices {α : Type u_1} (G : SimpleGraph α) :
Set α

The set of vertices of maximum eccentricity.

Equations
Instances For
    noncomputable def SimpleGraph.averageEccentricity {α : Type u_1} [Fintype α] (G : SimpleGraph α) :

    The average eccentricity of a graph G: the mean of G.eccent v over all vertices, converted to a real number. Returns 0 if the graph has no vertices.

    Equations
    Instances For

      The diameter of a finite graph as a computable natural number: the maximum BFS distance (computable_dist) over all ordered pairs of vertices.

      Equations
      Instances For

        For a connected finite graph, the extended diameter ediam equals the computable diameter.

        def SimpleGraph.computable_eccent {α : Type u_1} [Fintype α] [DecidableEq α] (G : SimpleGraph α) [DecidableRel G.Adj] (u : α) :

        The eccentricity of a vertex u in a finite graph as a computable natural number: the maximum BFS distance (computable_dist) from u to any vertex.

        Equations
        Instances For

          The radius of a finite graph as a computable natural number: the minimum, over all vertices, of the computable eccentricity.

          Equations
          Instances For
            theorem SimpleGraph.eccent_eq_computable {α : Type u_1} [Fintype α] [DecidableEq α] (G : SimpleGraph α) [DecidableRel G.Adj] [Nonempty α] (hc : G.Connected) (u : α) :

            For a connected finite graph, the eccentricity eccent u equals the computable eccentricity.

            For a connected finite graph, the radius radius equals the computable radius.