o
    ˷e~                     @   s   d Z dd Zdd ZdS )a  
****
YAML
****
Read and write NetworkX graphs in YAML format.

"YAML is a data serialization format designed for human readability
and interaction with scripting languages."
See http://www.yaml.org for documentation.

Format
------
http://pyyaml.org/wiki/PyYAML

c                   C   s   ddgS )N	read_yaml
write_yaml r   r   r   Q/var/www/ideatree/venv/lib/python3.10/site-packages/networkx/readwrite/nx_yaml.py__dir__   s   r   c                 C   sD   | dkrt d| dkrt d| dkrt dtdt d|  )	z8Remove functions and provide informative error messages.nx_yamla  
The nx_yaml module has been removed from NetworkX.
Please use the `yaml` package directly for working with yaml data.
For example, a networkx.Graph `G` can be written to and loaded
from a yaml file with:

    import yaml

    with open('path_to_yaml_file', 'w') as fh:
        yaml.dump(G, fh)
    with open('path_to_yaml_file', 'r') as fh:
        G = yaml.load(fh, Loader=yaml.Loader)

Note that yaml.Loader is considered insecure - see the pyyaml
documentation for further details.

This message will be removed in NetworkX 3.0.r   a5  
read_yaml has been removed from NetworkX, please use `yaml`
directly:

    import yaml

    with open('path', 'r') as fh:
        yaml.load(fh, Loader=yaml.Loader)

Note that yaml.Loader is considered insecure - see the pyyaml
documentation for further details.

This message will be removed in NetworkX 3.0.r   z
write_yaml has been removed from NetworkX, please use `yaml`
directly:

    import yaml

    with open('path_for_yaml_output', 'w') as fh:
        yaml.dump(G_to_be_yaml, fh)

This message will be removed in NetworkX 3.0.zmodule z has no attribute )ImportErrorAttributeError__name__)namer   r   r   __getattr__   s   
r   N)__doc__r   r   r   r   r   r   <module>   s    