Builds graph by BEM deps