Documentation

FormalConjecturesForMathlib.Combinatorics.SimpleGraph.SzegedIndex

noncomputable def SimpleGraph.szeged_aux {α : Type u_1} [Fintype α] (G : SimpleGraph α) (u v : α) :

Auxiliary function for Szeged index: counts vertices closer to u than v.

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

    The Szeged index of G.

    This is define as the sum ∑_{uv ∈ E(G)} n_u(u,v) * n_v(u,v) where n_u(uv) is the number of vertices closer to u than v.

    Equations
    Instances For
      def SimpleGraph.computable_szeged_aux {α : Type u_1} [Fintype α] [DecidableEq α] (G : SimpleGraph α) [DecidableRel G.Adj] (u v : α) :

      Computable Szeged auxiliary: count vertices closer to u than v.

      Equations
      Instances For

        Computable Szeged index.

        Equations
        Instances For