navis.interfaces.neuron.network.PointNetwork.from_edge_list¶
- classmethod PointNetwork.from_edge_list(edges, model='IntFire1', source_col='source', target_col='target', weight_col='weight', **props)[source]¶
Generate network from edge list.
- Parameters:
edges (pd.DataFrame) – Edge list. Must contain ‘source’, ‘target’ and ‘weight’ columns.
model ("IntFire1" | "IntFire2" | "IntFire4") – The model to use for the integrate-and-fire point processes.
source_col (str) – Name of the column with the source IDs.
target_col (str) – Name of the column with the target IDs.
weight_col (str) – Name of the column with the weights. The important thing to note here is that weight is expected to be in the 0-1 range with 1 effectively guaranteeing that a presynaptic spike triggers a postsynaptic spike.
**props – Keyword arguments are passed through to
add_neurons
. Use to set e.g. labels, threshold or additional model parameters.