src/pybel/utils.py
def hash_edge(source, target, edge_data: EdgeData) -> str:
    """Convert an edge tuple to a MD5 hash.

    :param BaseEntity source: The source BEL node
    :param BaseEntity target: The target BEL node
    :param edge_data: The edge's data dictionary
    :return: A hashed version of the edge tuple using MD5 hash of the binary pickle dump of u, v, and the json dump
     of d
    """
    edge_tuple = _get_edge_tuple(source, target, edge_data)
    edge_tuple_bytes = pickle.dumps(edge_tuple)
    return hashlib.md5(edge_tuple_bytes).hexdigest()
Convert an edge tuple to a MD5 hash.

    :param BaseEntity source: The source BEL node
    :param BaseEntity target: The target BEL node
    :param edge_data: The edge's data dictionary
    :return: A hashed version of the edge tuple using MD5 hash of the binary pickle dump of u, v, and the json dump
     of d
    
Convert an edge tuple to a MD5 hash.
Convert an edge tuple to a MD5 hash .
def hash_edge(source, target, edge_data: EdgeData) -> str:
    edge_tuple = _get_edge_tuple(source, target, edge_data)
    edge_tuple_bytes = pickle.dumps(edge_tuple)
    return hashlib.md5(edge_tuple_bytes).hexdigest()
def hash_edge ( source , target , edge_data : EdgeData ) -> str : edge_tuple = _get_edge_tuple ( source , target , edge_data ) edge_tuple_bytes = pickle . dumps ( edge_tuple ) return hashlib . md5 ( edge_tuple_bytes ) . hexdigest ( )
Convert an edge tuple to a MD5 hash.
Convert an edge tuple to a MD5 hash .
"""Convert an edge tuple to a MD5 hash.

    :param BaseEntity source: The source BEL node
    :param BaseEntity target: The target BEL node
    :param edge_data: The edge's data dictionary
    :return: A hashed version of the edge tuple using MD5 hash of the binary pickle dump of u, v, and the json dump
     of d
    """
A hashed version of the edge tuple using MD5 hash of the binary pickle dump of u, v, and the json dump
of d
A hashed version of the edge tuple using MD5 hash of the binary pickle dump of u v and the json dump of d
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