stable version for graph of ten million nodes