src/pybel/canonicalize.py
def to_bel_script_lines(graph, use_identifiers: bool = True) -> Iterable[str]:
    """Iterate over the lines of the BEL graph as a canonical BEL script.

    :param pybel.BELGraph graph: A BEL Graph
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    """
    return itt.chain(
        _to_bel_lines_header(graph),
        _to_bel_lines_body(graph, use_identifiers=use_identifiers),
        _to_bel_lines_footer(graph, use_identifiers=use_identifiers),
    )
Iterate over the lines of the BEL graph as a canonical BEL script.

    :param pybel.BELGraph graph: A BEL Graph
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    
Iterate over the lines of the BEL graph as a canonical BEL script.
Iterate over the lines of the BEL graph as a canonical BEL script .
def to_bel_script_lines(graph, use_identifiers: bool = True) -> Iterable[str]:
    return itt.chain(
        _to_bel_lines_header(graph),
        _to_bel_lines_body(graph, use_identifiers=use_identifiers),
        _to_bel_lines_footer(graph, use_identifiers=use_identifiers),
    )
def to_bel_script_lines ( graph , use_identifiers : bool = True ) -> Iterable [ str ] : return itt . chain ( _to_bel_lines_header ( graph ) , _to_bel_lines_body ( graph , use_identifiers = use_identifiers ) , _to_bel_lines_footer ( graph , use_identifiers = use_identifiers ) , )
Iterate over the lines of the BEL graph as a canonical BEL script.
Iterate over the lines of the BEL graph as a canonical BEL script .
"""Iterate over the lines of the BEL graph as a canonical BEL script.

    :param pybel.BELGraph graph: A BEL Graph
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    """
graph
A BEL Graph
A BEL Graph
use_identifiers
bool
Enables extended `BEP-0008 `_ syntax
Enables extended ` BEP - 0008 ` _ syntax