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:
- Linear —
V(r)vsr(raw ball volumes). - Log-log —
log V(r)vslog rwith the best-fit line whose slope is the estimated dimensiond.
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
@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 (default5).:title— overall title shown above both panels.