src/pybel/utils.py
def canonicalize_edge(edge_data: EdgeData) -> CanonicalEdge:
    """Canonicalize the edge to a tuple based on the relation, subject modifications, and object modifications."""
    return (
        edge_data[RELATION],
        _canonicalize_edge_modifications(edge_data.get(SOURCE_MODIFIER)),
        _canonicalize_edge_modifications(edge_data.get(TARGET_MODIFIER)),
    )
Canonicalize the edge to a tuple based on the relation, subject modifications, and object modifications.
Canonicalize the edge to a tuple based on the relation, subject modifications, and object modifications.
Canonicalize the edge to a tuple based on the relation subject modifications and object modifications .
def canonicalize_edge(edge_data: EdgeData) -> CanonicalEdge:
    return (
        edge_data[RELATION],
        _canonicalize_edge_modifications(edge_data.get(SOURCE_MODIFIER)),
        _canonicalize_edge_modifications(edge_data.get(TARGET_MODIFIER)),
    )
def canonicalize_edge ( edge_data : EdgeData ) -> CanonicalEdge : return ( edge_data [ RELATION ] , _canonicalize_edge_modifications ( edge_data . get ( SOURCE_MODIFIER ) ) , _canonicalize_edge_modifications ( edge_data . get ( TARGET_MODIFIER ) ) , )
Canonicalize the edge to a tuple based on the relation, subject modifications, and object modifications.
Canonicalize the edge to a tuple based on the relation subject modifications and object modifications .
"""Canonicalize the edge to a tuple based on the relation, subject modifications, and object modifications."""
edge_data
EdgeData