def _make_empty_relationship_matrix(names: Sequence[str]):
  """Samples a symmetric matrix of relationships in a group.

  Args:
      names: A list of strings representing the names of individuals in the
        group.

  Returns:
      A dictionary representing the symmetric relationship matrix, where:
          - Keys are names from the 'names' list.
          - Values are dictionaries, where:
              - Keys are also names from the 'names' list.
              - Values are either 0.0 or 1.0, representing the relationship
              between two individuals.
          - The matrix is symmetric: m[a][b] == m[b][a]
          - Diagonal elements are 1: m[a][a] == 1
  """

  m = {}
  for a in names:
    m[a] = {}
    for b in names:
      if a == b:
        m[a][b] = 1.0  # Diagonal elements are 1
      elif b in m and a in m[b]:
        m[a][b] = m[b][a]  # Ensure symmetry
      else:
        m[a][b] = 0.0  # No relationship

  return m
Samples a symmetric matrix of relationships in a group.

  Args:
      names: A list of strings representing the names of individuals in the
        group.

  Returns:
      A dictionary representing the symmetric relationship matrix, where:
          - Keys are names from the 'names' list.
          - Values are dictionaries, where:
              - Keys are also names from the 'names' list.
              - Values are either 0.0 or 1.0, representing the relationship
              between two individuals.
          - The matrix is symmetric: m[a][b] == m[b][a]
          - Diagonal elements are 1: m[a][a] == 1
  
examples/deprecated/modular/environment/modules/pub_coordination_edinburgh_friendship.py