backend.graph_to_nx

Functions

graph_to_nx(→ networkx.DiGraph)

Convert a motile TrackGraph into a networkx DiGraph.

Module Contents

backend.graph_to_nx.graph_to_nx(graph: motile.TrackGraph) networkx.DiGraph

Convert a motile TrackGraph into a networkx DiGraph.

Args:

graph (TrackGraph): TrackGraph to be converted to networkx

Returns:

nx.DiGraph: Directed networkx graph with same nodes, edges, and attributes.