def has_dot_library():
    """Test the presence of pydot
    """
    try:
        from networkx import nx_pydot
        import pydot
        del pydot
        return True
    except ImportError:
        pass
    return False
