'Tests using values other than sequential numbers as node IDs.'

def test_node_names(self):

    import string
    nodes = list(string.ascii_lowercase)
    G = nx.random_geometric_graph(nodes, 0.25)
    assert_equal(len(G), len(nodes))
    dist = euclidean
    for (u, v) in combinations(G, 2):
        if (v in G[u]):
            assert_true((dist(G.node[u]['pos'], G.node[v]['pos']) <= 0.25))
        else:
            assert_false((dist(G.node[u]['pos'], G.node[v]['pos']) <= 0.25))
