navis.network2igraph¶
- navis.network2igraph(x, threshold=None)[source]¶
Generate iGraph graph from edge list or adjacency.
Requires iGraph to be installed.
- Parameters:
x (pandas.DataFrame | np.array) –
Connectivity information:
List of edges (columns: ‘source’, ‘target’, ‘weight’)
Adjacency matrix (pd.DataFrame, rows=sources, columns=targets)
threshold (float | int, optional) – Connections weaker than this will be excluded.
- Returns:
iGraph representation of the network.
- Return type:
igraph.Graph(directed=True)