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' }));