src/pybel/canonicalize.py
def edge_to_bel(
    source: BaseEntity,
    target: BaseEntity,
    data: EdgeData,
    sep: Optional[str] = None,
    use_identifiers: bool = True,
) -> str:
    """Take two nodes and gives back a BEL string representing the statement.

    :param source: The edge's source's PyBEL node data dictionary
    :param target: The edge's target's PyBEL node data dictionary
    :param data: The edge's data dictionary
    :param sep: The separator between the source, relation, and target. Defaults to ' '
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    """
    sep = sep or ' '
    return sep.join(edge_to_tuple(source=source, target=target, data=data, use_identifiers=use_identifiers))
Take two nodes and gives back a BEL string representing the statement.

    :param source: The edge's source's PyBEL node data dictionary
    :param target: The edge's target's PyBEL node data dictionary
    :param data: The edge's data dictionary
    :param sep: The separator between the source, relation, and target. Defaults to ' '
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    
Take two nodes and gives back a BEL string representing the statement.
Take two nodes and gives back a BEL string representing the statement .
def edge_to_bel(
    source: BaseEntity,
    target: BaseEntity,
    data: EdgeData,
    sep: Optional[str] = None,
    use_identifiers: bool = True,
) -> str:
    sep = sep or ' '
    return sep.join(edge_to_tuple(source=source, target=target, data=data, use_identifiers=use_identifiers))
def edge_to_bel ( source : BaseEntity , target : BaseEntity , data : EdgeData , sep : Optional [ str ] = None , use_identifiers : bool = True , ) -> str : sep = sep or ' ' return sep . join ( edge_to_tuple ( source = source , target = target , data = data , use_identifiers = use_identifiers ) )
Take two nodes and gives back a BEL string representing the statement.
Take two nodes and gives back a BEL string representing the statement .
"""Take two nodes and gives back a BEL string representing the statement.

    :param source: The edge's source's PyBEL node data dictionary
    :param target: The edge's target's PyBEL node data dictionary
    :param data: The edge's data dictionary
    :param sep: The separator between the source, relation, and target. Defaults to ' '
    :param use_identifiers: Enables extended `BEP-0008 <http://bep.bel.bio/published/BEP-0008.html>`_ syntax
    """
source
BaseEntity
The edge's source's PyBEL node data dictionary
The edge ' s source ' s PyBEL node data dictionary
target
BaseEntity
The edge's target's PyBEL node data dictionary
The edge ' s target ' s PyBEL node data dictionary
data
EdgeData
The edge's data dictionary
The edge ' s data dictionary
sep
Optional[str]
The separator between the source, relation, and target. Defaults to ' '
The separator between the source relation and target . Defaults to ' '
use_identifiers
bool
Enables extended `BEP-0008 `_ syntax
Enables extended ` BEP - 0008 ` _ syntax