navis.NeuronConnector¶
- class navis.NeuronConnector(nrns=None)[source]¶
Class which creates a connectivity graph from a set of neurons.
Connectivity is determined by shared IDs in the
connectors
table.Add neurons with the add_neuron and add_neurons methods. Alternatively, supply an iterable of neurons in the constructor. Neurons must have unique names.
See the to_(multi)digraph method for output.
Methods
__init__
([nrns])add_neuron
(nrn)Add a single neuron to the connector.
add_neurons
(nrns)Add several neurons to the connector.
edges
([include_other])Iterate through all synapse edges.
to_adjacency
([include_other])Create an adjacency matrix of neuron connectivity.
to_digraph
([include_other])Create a graph of neuron connectivity.
to_multidigraph
([include_other])Create a graph of neuron connectivity where each synapse is an edge.