graphit/graph_io/io_yaml_format.py
def write_yaml(graph, default=None, include_root=False, allow_none=True):
    """
    Export a graph to a (nested) JSON structure
    
    Convert graph representation of the dictionary tree into JSON
    using a nested or flattened representation of the dictionary hierarchy.
    
    Dictionary keys and values are obtained from the node attributes using
    `key_tag` and `value_tag`.  The key_tag is set to graph
    key_tag by default.
    
    :param graph:           Graph object to export
    :type graph:            :graphit:GraphAxis
    :param default:         value to use when node value was not found using
                            value_tag.
    :type default:          mixed
    :param include_root:    Include the root node in the hierarchy
    :type include_root:     :py:bool
    :param allow_none:      allow None values in the output
    :type allow_none:       :py:bool
    
    :rtype:                 :py:yaml
    """
    
    return yaml.dump(write_pydata(graph, default=default, include_root=include_root, allow_none=allow_none))

    Export a graph to a (nested) JSON structure
    
    Convert graph representation of the dictionary tree into JSON
    using a nested or flattened representation of the dictionary hierarchy.
    
    Dictionary keys and values are obtained from the node attributes using
    `key_tag` and `value_tag`.  The key_tag is set to graph
    key_tag by default.
    
    :param graph:           Graph object to export
    :type graph:            :graphit:GraphAxis
    :param default:         value to use when node value was not found using
                            value_tag.
    :type default:          mixed
    :param include_root:    Include the root node in the hierarchy
    :type include_root:     :py:bool
    :param allow_none:      allow None values in the output
    :type allow_none:       :py:bool
    
    :rtype:                 :py:yaml
    
Export a graph to a (nested) JSON structure
Convert graph representation of the dictionary tree into JSON
using a nested or flattened representation of the dictionary hierarchy.

Dictionary keys and values are obtained from the node attributes using
`key_tag` and `value_tag`.  The key_tag is set to graph
key_tag by default.
Export a graph to a ( nested ) JSON structure Convert graph representation of the dictionary tree into JSON using a nested or flattened representation of the dictionary hierarchy . Dictionary keys and values are obtained from the node attributes using ` key_tag ` and ` value_tag ` . The key_tag is set to graph key_tag by default .
def write_yaml(graph, default=None, include_root=False, allow_none=True):
    return yaml.dump(write_pydata(graph, default=default, include_root=include_root, allow_none=allow_none))
def write_yaml ( graph , default = None , include_root = False , allow_none = True ) : return yaml . dump ( write_pydata ( graph , default = default , include_root = include_root , allow_none = allow_none ) )
Export a graph to a (nested) JSON structure
Convert graph representation of the dictionary tree into JSON
using a nested or flattened representation of the dictionary hierarchy.
Export a graph to a ( nested ) JSON structure Convert graph representation of the dictionary tree into JSON using a nested or flattened representation of the dictionary hierarchy .
"""
    Export a graph to a (nested) JSON structure
    
    Convert graph representation of the dictionary tree into JSON
    using a nested or flattened representation of the dictionary hierarchy.
    
    Dictionary keys and values are obtained from the node attributes using
    `key_tag` and `value_tag`.  The key_tag is set to graph
    key_tag by default.
    
    :param graph:           Graph object to export
    :type graph:            :graphit:GraphAxis
    :param default:         value to use when node value was not found using
                            value_tag.
    :type default:          mixed
    :param include_root:    Include the root node in the hierarchy
    :type include_root:     :py:bool
    :param allow_none:      allow None values in the output
    :type allow_none:       :py:bool
    
    :rtype:                 :py:yaml
    """
None
:py:yaml
graph
Graph object to export
Graph object to export
default
value to use when node value was not found using
value_tag.
value to use when node value was not found using value_tag .
include_root
Include the root node in the hierarchy
Include the root node in the hierarchy
allow_none
allow None values in the output
allow None values in the output