sage: abs(mean([RandomGNP(200,.2).density()foriinrange(30)])-.2)<.001Truesage: RandomGNP(150,.2,loops=True)Traceback (most recent call last):...ValueError: The 'loops' argument can be set to True only when 'directed' is True.