Public
Edited
Jun 9
Insert cell
Insert cell
Insert cell
nodes = mc1_graph.nodes
Insert cell
Insert cell
sailorShift = nodes.find(d => d.name === "Sailor Shift")
Insert cell
Insert cell
sailorNodeIds = new Set(
[sailorShift.id, ...sailorLinks.map(d => d.source), ...sailorLinks.map(d => d.target)]
)

Insert cell
sailorNodes = nodes.filter(d => sailorNodeIds.has(d.id))
Insert cell
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more