Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

spanning function

A spanning tree by breadth from node 0, then from the first node of each other part: the parent and depth of every node, and the roots of the parts.

View as Markdown
import { spanning } from '@dioramajs/data/graph'

.

function spanning(
  n: number,
  edges: readonly GraphEdge[],
): { depth: Int32Array; parent: Int32Array; roots: number[] }

Parameters

NameTypeDescription
nnumber
edgesreadonly GraphEdge[]

Defined in packages/data/src/graph.ts.