fafbseg.flywire.get_l2_graph¶
- fafbseg.flywire.get_l2_graph(root_ids, progress=True, *, dataset=None)[source]¶
Fetch L2 graph(s).
- Parameters:
root_ids (int | list of ints | NeuronCriteria) – FlyWire root ID(s) for which to fetch the L2 graphs.
progress (bool) – Whether to show a progress bar.
dataset ("public" | "production" | "sandbox" | "flat_630", optional) – Against which FlyWire dataset to query. If
None
will fall back to the default dataset (seeset_default_dataset()
).
- Returns:
The L2 graph or list thereof.
- Return type:
networkx.Graph
Examples
>>> from fafbseg import flywire >>> G = flywire.get_l2_graph(720575940614131061)