src/pybel/canonicalize.py
def _to_bel_lines_header(graph) -> Iterable[str]:
    """Iterate the lines of a BEL graph's corresponding BEL script's header.

    :param pybel.BELGraph graph: A BEL graph
    """
    yield '# This document was created by PyBEL v{} and bel-resources v{} on {}\n'.format(
        VERSION, bel_resources.constants.VERSION, time.asctime(),
    )
    yield from make_knowledge_header(
        namespace_url=graph.namespace_url,
        namespace_patterns=graph.namespace_pattern,
        annotation_url=graph.annotation_url,
        annotation_patterns=graph.annotation_pattern,
        annotation_list=graph.annotation_list,
        **graph.document,
    )
Iterate the lines of a BEL graph's corresponding BEL script's header.

    :param pybel.BELGraph graph: A BEL graph
    
Iterate the lines of a BEL graph's corresponding BEL script's header.
Iterate the lines of a BEL graph ' s corresponding BEL script ' s header .
def _to_bel_lines_header(graph) -> Iterable[str]:
    yield '# This document was created by PyBEL v{} and bel-resources v{} on {}\n'.format(
        VERSION, bel_resources.constants.VERSION, time.asctime(),
    )
    yield from make_knowledge_header(
        namespace_url=graph.namespace_url,
        namespace_patterns=graph.namespace_pattern,
        annotation_url=graph.annotation_url,
        annotation_patterns=graph.annotation_pattern,
        annotation_list=graph.annotation_list,
        **graph.document,
    )
def _to_bel_lines_header ( graph ) -> Iterable [ str ] : yield '# This document was created by PyBEL v{} and bel-resources v{} on {}\n' . format ( VERSION , bel_resources . constants . VERSION , time . asctime ( ) , ) yield from make_knowledge_header ( namespace_url = graph . namespace_url , namespace_patterns = graph . namespace_pattern , annotation_url = graph . annotation_url , annotation_patterns = graph . annotation_pattern , annotation_list = graph . annotation_list , ** graph . document , )
Iterate the lines of a BEL graph's corresponding BEL script's header.
Iterate the lines of a BEL graph ' s corresponding BEL script ' s header .
"""Iterate the lines of a BEL graph's corresponding BEL script's header.

    :param pybel.BELGraph graph: A BEL graph
    """
graph
A BEL graph
A BEL graph