WolframModel.GeodesicPlotSVG (WolframModel v1.3.0)

Copy Markdown View Source

SVG line chart of geodesic ball growth in a Hypergraph.

For each seed vertex, the plot shows V(r) — the number of vertices reachable within geodesic distance r — as a function of r. In a d-dimensional space, V(r) ~ r^d, so the slope of the log-log version gives an estimate of the effective spatial dimension.

Two panels are rendered side-by-side:

  1. LinearV(r) vs r (raw ball volumes).
  2. Log-loglog V(r) vs log r with the best-fit line whose slope is the estimated dimension d.

Example

evolved.hypergraph
|> WolframModel.GeodesicPlotSVG.to_svg(seeds: 5, title: "Dimension estimate")
|> then(&File.write!("geodesic.svg", &1))

Summary

Functions

Returns an SVG string containing the geodesic ball growth chart.

Functions

to_svg(hg, opts \\ [])

@spec to_svg(
  Hypergraph.t(),
  keyword()
) :: String.t()

Returns an SVG string containing the geodesic ball growth chart.

Options:

  • :seeds — number of seed vertices to sample (default 5).
  • :title — overall title shown above both panels.