Skip to content Search Apps Documentation Source Content Run Reset Eval Playground File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

bellmanforddemo/v0 package

Overview

Package bellmanforddemo is a small gnoweb demo of the shortest-path search provided by the p/moul/x/daily/bellmanford(/p/moul/x/daily/bellmanford/v0) library: cheapest routes across a network where one hop pays a rebate, and the answer a routing table has to give when no cheapest route exists at all.

It contains no search logic of its own. Stateless, so Render is deterministic: every figure below comes from the fixed graphs declared at the top of this file, never from chain state, which is what lets an example test pin the page.

Function

Render

func Render(path string) string

Render renders the demo for gnoweb.

Example
1Render("") / Render("/") -> the full demo

Param

Command

gnokey query vm/qeval -remote "tcp://127.0.0.1:18899" -data "gno.land/r/moul/x/daily/bellmanforddemo/v0.Render()"

Result

Gno Expression Evaluator

Evaluate any read-only Gno expression against gno.land/r/moul/x/daily/bellmanforddemo/v0, for example a function call with arguments.