src/pybel/utils.py
def _get_edge_tuple(
    source,
    target,
    edge_data: EdgeData,
) -> Tuple[str, str, Optional[str], Optional[str], CanonicalEdge]:
    """Convert an edge to a consistent tuple.

    :param BaseEntity source: The source BEL node
    :param BaseEntity target: The target BEL node
    :param edge_data: The edge's data dictionary
    :return: A tuple that can be hashed representing this edge. Makes no promises to its structure.
    """
    return (
        source.as_bel(),
        target.as_bel(),
        _get_citation_str(edge_data),
        edge_data.get(EVIDENCE),
        canonicalize_edge(edge_data),
    )
Convert an edge to a consistent tuple.

    :param BaseEntity source: The source BEL node
    :param BaseEntity target: The target BEL node
    :param edge_data: The edge's data dictionary
    :return: A tuple that can be hashed representing this edge. Makes no promises to its structure.
    
Convert an edge to a consistent tuple.
Convert an edge to a consistent tuple .
def _get_edge_tuple(
    source,
    target,
    edge_data: EdgeData,
) -> Tuple[str, str, Optional[str], Optional[str], CanonicalEdge]:
    return (
        source.as_bel(),
        target.as_bel(),
        _get_citation_str(edge_data),
        edge_data.get(EVIDENCE),
        canonicalize_edge(edge_data),
    )
def _get_edge_tuple ( source , target , edge_data : EdgeData , ) -> Tuple [ str , str , Optional [ str ] , Optional [ str ] , CanonicalEdge ] : return ( source . as_bel ( ) , target . as_bel ( ) , _get_citation_str ( edge_data ) , edge_data . get ( EVIDENCE ) , canonicalize_edge ( edge_data ) , )
Convert an edge to a consistent tuple.
Convert an edge to a consistent tuple .
"""Convert an edge to a consistent tuple.

    :param BaseEntity source: The source BEL node
    :param BaseEntity target: The target BEL node
    :param edge_data: The edge's data dictionary
    :return: A tuple that can be hashed representing this edge. Makes no promises to its structure.
    """
A tuple that can be hashed representing this edge. Makes no promises to its structure.
A tuple that can be hashed representing this edge . Makes no promises to its structure .
source
The source BEL node
The source BEL node
target
The target BEL node
The target BEL node
edge_data
EdgeData
The edge's data dictionary
The edge ' s data dictionary