Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/collatz/lib/esm/TreeGraph.js>treeGraph

Functions related to the Collatz/Syracuse/3N+1 problem.
Latest
function treeGraph
import { treeGraph } from "https://deno.land/x/collatz@javascript-v1.2.0/lib/esm/TreeGraph.js";

Returns a directed tree graph of the reverse function values up to a maximum nesting of maxOrbitDistance, with the initialValue as the root.

Parameters

unnamed 0
  • Allows non-default (P,a,b); and other options.