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
603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 | |