src/pybel/io/gpickle.py
def from_bytes(bytes_graph: bytes, check_version: bool = True) -> BELGraph:
    """Read a graph from bytes (the result of pickling the graph).

    :param bytes_graph: File or filename to write
    :param check_version: Checks if the graph was produced by this version of PyBEL
    """
    graph = pickle.loads(bytes_graph)

    raise_for_not_bel(graph)
    if check_version:
        raise_for_old_graph(graph)

    return graph
Read a graph from bytes (the result of pickling the graph).

    :param bytes_graph: File or filename to write
    :param check_version: Checks if the graph was produced by this version of PyBEL
    
Read a graph from bytes (the result of pickling the graph).
Read a graph from bytes ( the result of pickling the graph ) .
def from_bytes(bytes_graph: bytes, check_version: bool = True) -> BELGraph:
    graph = pickle.loads(bytes_graph)
    raise_for_not_bel(graph)
    if check_version:
        raise_for_old_graph(graph)
    return graph
def from_bytes ( bytes_graph : bytes , check_version : bool = True ) -> BELGraph : graph = pickle . loads ( bytes_graph ) raise_for_not_bel ( graph ) if check_version : raise_for_old_graph ( graph ) return graph
Read a graph from bytes (the result of pickling the graph).
Read a graph from bytes ( the result of pickling the graph ) .
"""Read a graph from bytes (the result of pickling the graph).

    :param bytes_graph: File or filename to write
    :param check_version: Checks if the graph was produced by this version of PyBEL
    """
bytes_graph
bytes
File or filename to write
File or filename to write
check_version
bool
Checks if the graph was produced by this version of PyBEL
Checks if the graph was produced by this version of PyBEL