TWIN

    Book: Temporal Scale of Dynamic Networks
    Download TWIN code for Network Density here link
    Note that, an optimal point is a point that has low variance and high compression ratio (ideally, it's the crossing point between two axises).