Builds graph by BEM decls