Diâmetro aprox (log_k V)

passos esperados.
Created by
Renato Passos, Eng. de Software
Reviewed by
Renato Passos, Eng. de Software

Last updated: Apr 18, 2026

Diâmetro
3,86

About this calculator

The approximate diameter calculator (log_k V) estimates the maximum minimal distance between two vertices in a graph using a logarithmic formula based on the number of vertices (V) and a parameter k. This method is useful for large, complex graphs where exact diameter computation is computationally expensive. The result reflects an expected value based on statistical properties of random graphs.

To use the calculator, input the total number of vertices (V) and define the parameter k, which can represent average degrees or structural properties of the graph. The result is calculated as log_k(V), adjusted by typical scaling factors for real-world graphs. This provides a practical estimate for social network analysis, routing algorithms, or theoretical complexity studies.

Note: this approximation doesn't replace exact calculations. In irregular graphs (like deep trees or dense graphs), the result may have higher error margins. For small or specific graphs, validate with traditional methods.

Frequently asked questions

What does the parameter k represent?

The parameter k models structural properties of the graph, such as average degree or typical connectivity. Its value varies depending on the network type being analyzed.

Can I use this calculator for small graphs?

Not recommended for graphs with fewer than 50 vertices, as the logarithmic approximation may underestimate or overestimate the actual diameter.

Why isn't the result an integer?

The expected diameter can be a real number, representing a statistical average. Round it according to your use case requirements.

How does the formula work for disconnected graphs?

This calculator assumes connected graphs. For disconnected graphs, calculate the diameter of each connected component separately.

Other Grafos Avançado calculators