src/pybel/io/sbel.py
def from_sbel(it: Iterable[SBEL], includes_metadata: bool = True) -> BELGraph:
    """Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL.

    :param it: An iterable of dictionaries.
    :param includes_metadata: By default, interprets the first element of the iterable as the graph's metadata.
     Switch to ``False`` to disable.
    :return: A BEL graph
    """
    it = iter(it)
    rv = BELGraph()
    if includes_metadata:
        rv.graph.update(next(it))
        _recover_graph_dict(rv)
    add_sbel(rv, it)
    return rv
Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL.

    :param it: An iterable of dictionaries.
    :param includes_metadata: By default, interprets the first element of the iterable as the graph's metadata.
     Switch to ``False`` to disable.
    :return: A BEL graph
    
Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL.
Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL .
def from_sbel(it: Iterable[SBEL], includes_metadata: bool = True) -> BELGraph:
    it = iter(it)
    rv = BELGraph()
    if includes_metadata:
        rv.graph.update(next(it))
        _recover_graph_dict(rv)
    add_sbel(rv, it)
    return rv
def from_sbel ( it : Iterable [ SBEL ] , includes_metadata : bool = True ) -> BELGraph : it = iter ( it ) rv = BELGraph ( ) if includes_metadata : rv . graph . update ( next ( it ) ) _recover_graph_dict ( rv ) add_sbel ( rv , it ) return rv
Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL.
Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL .
"""Load a BEL graph from an iterable of dictionaries corresponding to lines in BEL JSONL.

    :param it: An iterable of dictionaries.
    :param includes_metadata: By default, interprets the first element of the iterable as the graph's metadata.
     Switch to ``False`` to disable.
    :return: A BEL graph
    """
A BEL graph
A BEL graph
it
Iterable[SBEL]
An iterable of dictionaries.
An iterable of dictionaries .
includes_metadata
bool
By default, interprets the first element of the iterable as the graph's metadata.
Switch to ``False`` to disable.
By default interprets the first element of the iterable as the graph ' s metadata . Switch to ` ` False ` ` to disable .