def _nx_to_dnx_layout(center, scale):
    """
    This function translates a center and a scale from the networkx convention, [center - scale, center + scale]^dim,
    to the dwave_networkx convention, [center, center-scale] x [center, center+scale]^(dim-1).

    Returns
    -------
    dnx_center : float
        The top left corner of a layout.
    dnx_scale : float
        This is twice the original scale.
    """
    dnx_center = (center[0] - scale, ) + tuple(x + scale for x in center[1:])
    dnx_scale = 2*scale

    return dnx_center, dnx_scale