This Scala program generates Gilbert random graphs based on parameters ( n ) (number of nodes) and ( p ) (edge creation probability). It calculates the average path length for graphs of varying sizes and visualizes these results with:
- A linear plot (average path length vs. number of nodes).
- A log-log plot (average path length vs. number of nodes with both axes on a logarithmic scale).