Use sparse graph instead of complete graph