Beispiel #1
0
def test_node_idx():
    n = node.Node()

    assert n.idx == 0
Beispiel #2
0
def test_node_label():
    n = node.Node()

    assert n.label == 0
Beispiel #3
0
def test_node_predicted_label():
    n = node.Node()

    assert n.predicted_label == 0
Beispiel #4
0
def test_node_pred():
    n = node.Node()

    assert n.pred == constants.NIL
Beispiel #5
0
def test_node_relevant():
    n = node.Node()

    assert n.relevant == constants.IRRELEVANT
Beispiel #6
0
def test_node_root():
    n = node.Node()

    assert n.root == 0
Beispiel #7
0
def test_node_status():
    n = node.Node()

    assert n.status == constants.STANDARD
Beispiel #8
0
def test_node_n_plateaus():
    n = node.Node()

    assert n.n_plateaus == 0
Beispiel #9
0
def test_node_adjacency():
    n = node.Node()

    assert isinstance(n.adjacency, list)
Beispiel #10
0
def test_node_radius():
    n = node.Node()

    assert n.radius == 0
Beispiel #11
0
def test_node_density():
    n = node.Node()

    assert n.density == 0
Beispiel #12
0
def test_node_cost():
    n = node.Node()

    assert n.cost == 0
Beispiel #13
0
def test_node_features():
    n = node.Node()

    assert isinstance(n.features, np.ndarray)
Beispiel #14
0
def test_node_cluster_label():
    n = node.Node()

    assert n.cluster_label == 0