negative w's in graph initialization loop