backend.graph_to_nx
Functions
|
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.