Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

graph: quick start

node v10.24.1
version: 1.0.0
endpointsharetweet
const BemGraph = require('@bem/sdk.graph').BemGraph; const graph = new BemGraph(); graph.vertex({ block: 'a' }) .dependsOn({ block: 'b' }); graph.vertex({ block: 'b' }) .dependsOn({ block: 'c' }) .linkWith({ block: 'd'}); JSON.stringify(graph.dependenciesOf({ block: 'a' }));
Loading…

no comments

    sign in to comment