code wiki / _hdl_build / nx_viz_graph.nx

nx_viz_graph.nx

buildroot/runtime/_hdl_build/nx_viz_graph.nx

8905 B177 linesdepth 4pulls 6 transitivereach 0 importersview sourcekind orphan librarytopic viz
docsdependenciesstructsconstsfunctions

about

nx_viz_graph.nx -- COMPOSED live FORCE-GRAPH: parse a node/edge TSV, seed node positions on a circle (nx_viz_trig vs_cos/vs_sin), lay it out with nx_viz_force (Fruchterman-Reingold), draw edges+nodes+labels as SVG (nx_viz_shape serializer) into a self-contained HTML page for the wiki. Demonstrates the force layer on real data (here the library's own import graph). usage: nx_viz_graph [in.tsv] [out.html]. license_tier: ORIGINAL

dependencies 4 imports · 0 importers

nx_viz_force.nx nx_viz_shape.nx nx_viz_color.nx nx_syscalls.nx nx_viz_graph.nx

imports: nx_viz_force.nxnx_viz_shape.nxnx_viz_color.nxnx_syscalls.nx

imported by: nobody (leaf or entry point)

structs

none

consts

9const K_MAGIC_4096: i64 = 4096
10const K_MAGIC_10000: i64 = 10000
11const K_MAGIC_262144: i64 = 262144

functions

13func cw(fd: i64, s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(fd, s, n); return 0 }
15func emit_hex6(out: *u8, off: i64, color: i64) -> i64
28func pn(fd: i64, v: i64) -> i64
36func atoi_rng(buf: *u8, s: i64, e: i64) -> i64
42func main(argc: i64, argv: *i64) -> i64