Turn Tree-, Mesh- or VoxelNeuron into an NetworkX graph.
graph – NetworkX representation of the neuron. Returns list of graphs if x is multiple neurons. Graph is directed for TreeNeurons and undirected for Mesh- and VoxelNeurons. Graph is weighted for Tree- and MeshNeurons.
- Return type:
networkx.Graph | networkx.DiGraph