map library

The map of an application's graphs as a Markdown file — a tool, not part of the model. It reads the facts the core records; it never changes how a graph runs.

import 'package:blackbox/map.dart';

File('doc/MAP.md').writeAsStringSync(
  graphMap({'player': player.graph, 'catalog': catalog.graph}),
);

Functions

graphMap(Map<String, Graph> graphs) → String
The map of several graphs as one Markdown document: an overview (per graph, what it reads from the others and what its effects press; the boxes outside them; every hidden link), a small picture of how the graphs connect, and an index — for each box the graph that drives it, the file it is wired in, its input wires, its readers, the effects that press it, the boxes it touches where the graph cannot see. Keys are the graphs' names on the map.