src/pybel/canonicalize.py
def to_bel_script(graph, path: Union[str, TextIO], use_identifiers: bool = True) -> None:
    """Write the BELGraph as a canonical BEL script.

    :param BELGraph graph: the BEL Graph to output as a BEL Script
    :param path: A path or file-like.
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    """
    for line in to_bel_script_lines(graph, use_identifiers=use_identifiers):
        print(line, file=path)
Write the BELGraph as a canonical BEL script.

    :param BELGraph graph: the BEL Graph to output as a BEL Script
    :param path: A path or file-like.
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    
Write the BELGraph as a canonical BEL script.
Write the BELGraph as a canonical BEL script .
def to_bel_script(graph, path: Union[str, TextIO], use_identifiers: bool = True) -> None:
    for line in to_bel_script_lines(graph, use_identifiers=use_identifiers):
        print(line, file=path)
def to_bel_script ( graph , path : Union [ str , TextIO ] , use_identifiers : bool = True ) -> None : for line in to_bel_script_lines ( graph , use_identifiers = use_identifiers ) : print ( line , file = path )
Write the BELGraph as a canonical BEL script.
Write the BELGraph as a canonical BEL script .
"""Write the BELGraph as a canonical BEL script.

    :param BELGraph graph: the BEL Graph to output as a BEL Script
    :param path: A path or file-like.
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    """
graph
the BEL Graph to output as a BEL Script
the BEL Graph to output as a BEL Script
path
Union[str, TextIO]
A path or file-like.
A path or file - like .
use_identifiers
bool
Enables extended `BEP-0008 `_ syntax
Enables extended ` BEP - 0008 ` _ syntax