<｜begin▁of▁sentence｜>### Instruction:
As a health educator, you have been tasked with overseeing a community health campaign aimed at maximizing the effectiveness of partnerships. Using your expertise, you need to utilize the available resources to create a program that can identify the most influential collaborations. Specifically, you are required to leverage the MaximalMatching algorithm from NetworkX to identify key partnerships and then extract the essential data pertaining to these collaborations using the 'edges' method. Your ultimate goal is to compile a list of these connections to inform and enhance the community health campaign.
### Response:
from networkx.algorithms.matching import MaximalMatching
import networkx as nx

# Create a graph
g = nx.Graph()
g.add_edges_from([(1, 2), (2, 3), (3, 4), (4, 1), (1, 3)])

# Compute the maximal matching
matching = MaximalMatching(g)

# Get the edges in the maximal matching
matching_edges = matching.edges()

# Print the edges in the matching
print(list(matching_edges))
<|EOT|>
