yawning_titan.networks.network_creator.get_network_from_matrix_and_positions#
- yawning_titan.networks.network_creator.get_network_from_matrix_and_positions(matrix, positions)[source]#
Get nodes and edges from a numpy matrix and a dictionary of positions.
- Parameters:
matrix – A 2D numpy array adjacency matrix.
positions – The node positions on a graph.
- Returns:
An instance of
Network
.