'Create S-blossom and use it for augmentation:'

def test_s_blossom(self):

    G = nx.Graph()
    G.add_weighted_edges_from([(1, 2, 8), (1, 3, 9), (2, 3, 10), (3, 4, 7)])
    assert_equal(nx.max_weight_matching(G), {1: 2, 2: 1, 3: 4, 4: 3})
    G.add_weighted_edges_from([(1, 6, 5), (4, 5, 6)])
    assert_equal(nx.max_weight_matching(G), {1: 6, 2: 3, 3: 2, 4: 5, 5: 4, 6: 1})
