class_docstr: Unit tests for the
  :func:`~networkx.algorithms.matching.max_weight_matching` function.
docstr: Create S-blossom and use it for augmentation:
docstr_tok: ["Create","S-blossom","and","use","it","for","augmentation",":"]
code: def test_s_blossom(self):
      """Create S-blossom and use it for augmentation:"""
      G = nx.Graph()
      G.add_weighted_edges_from(
          [(1, 2, 8), (1, 3, 9), (2, 3, 10), (3, 4, 7)]
      )
      answer = matching_dict_to_set({1: 2, 2: 1, 3: 4, 4: 3})
      assert edges_equal(nx.max_weight_matching(G), answer)
      assert edges_equal(nx.min_weight_matching(G), answer)
  
      G.add_weighted_edges_from([(1, 6, 5), (4, 5, 6)])
      answer = matching_dict_to_set(
          {1: 6, 2: 3, 3: 2, 4: 5, 5: 4, 6: 1}
      )
      assert edges_equal(nx.max_weight_matching(G), answer)
      assert edges_equal(nx.min_weight_matching(G), answer)
  
imports: import math
  from itertools import permutations
  from pytest import raises
  import networkx
  from networkx.algorithms.matching import matching_dict_to_set
  from networkx.utils import edges_equal
label_desc: Use image node_id 10 for calling the TestMaxWeightMatching obj's underlying member method code with example usage: obj.test_s_blossom() without return types