Seperate kos algo from graph object