cgb_make_graph function

Build a correlation-guided bilateral (CGB) graph