graph updating with different weights
get rid of console logs