In the mathematical discipline of graph theory, the line graph of a simple undirected weighted graph

is another simple undirected weighted graph
)
that represents the adjacency between every two edges in

.
Precisely speaking, for an undirected weighted graph

without loops or multiple edges, its line graph
)
is an undirected weighted graph such that:
Each vertex of
)
represents an edge of

;
Two vertices of
)
are adjacent if and only if their corresponding edges share a common endpoint in

, and the weight of such edge between this two vertices is the sum of the weights of their corresponding edges.
A maximum weighted matching in a simple undirected weighted graph is defined as a set of edges where no two edges share a common vertex and the sum of the weights of the edges in the set is maximized.
Given a simple undirected weighted connected graph

, your task is to find the sum of the weights of the edges in the maximum weighted matching of
)
.