'Floating point weights'

def test_floating_point_weights(self):

    G = nx.Graph()
    G.add_edge(1, 2, weight=math.pi)
    G.add_edge(2, 3, weight=math.exp(1))
    G.add_edge(1, 3, weight=3.0)
    G.add_edge(1, 4, weight=math.sqrt(2.0))
    assert_equal(nx.max_weight_matching(G), {1: 4, 2: 3, 3: 2, 4: 1})
