separate unit edge initialization and segment-graph-s in two kernel functions gb1 and gb2 in gbh.cu:, // process edges initialization
a clear version which clears many commented code