network_models
navis.models.network_models.BaseNetworkModel
#
Base model for network simulations.
Source code in navis/models/network_models.py
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 |
|
has_results: bool
property
#
Check if model has results.
n_nodes: int
property
#
Return unique nodes in network.
__init__
#
Initialize model.
Source code in navis/models/network_models.py
34 35 36 37 38 39 40 41 42 43 44 45 46 |
|
run_parallel
#
Run model using parallel processes.
Source code in navis/models/network_models.py
60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 |
|
navis.models.network_models.random_activation_function
#
Sample random activation for edges given a weight to probability function.
PARAMETER | DESCRIPTION |
---|---|
w |
TYPE: |
func |
TYPE: |
RETURNS | DESCRIPTION |
---|---|
np.ndarray | True or False values for each edge. |
Source code in navis/models/network_models.py
562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 |
|