color
build graph from blocks