netflow.checks#
Functions
Raises an AssertionError if the graph is not connected |
|
Raises AssertionError if the distance matrix is not non-negative and symmetric. |
|
|
Raises AssertionError if not all edges are in the graph. |
Raises an AssertionError if the graph has self-loops |
|
|
Raises an AssertionError if there are weights below the tolerance |
Raises AssertionError if the matrix has any missing values. |
|
Raises AssertionError if the matrix has negative values. |
|
Raises AssertionError if the matrix is not symmetric. |
- netflow.checks.check_connected_graph(G)[source]#
Raises an AssertionError if the graph is not connected
- netflow.checks.check_distance_matrix(A)[source]#
Raises AssertionError if the distance matrix is not non-negative and symmetric.
Note: This does not require the diagonal to be zeros.
- netflow.checks.check_edges_in_graph(G, edges)[source]#
Raises AssertionError if not all edges are in the graph.
- netflow.checks.check_graph_no_self_loops(G)[source]#
Raises an AssertionError if the graph has self-loops
- netflow.checks.check_graph_weights(G, component, weight, tol=1e-06)[source]#
Raises an AssertionError if there are weights below the tolerance
- netflow.checks.check_matrix_no_nan(A)[source]#
Raises AssertionError if the matrix has any missing values.