update tw graph