<｜begin▁of▁sentence｜>### Instruction:
As a wildlife rehabilitator, you may encounter a scenario where you have to track the movements and interactions of different animals within a particular habitat using a network representation. In this case, you might need to simplify the network by removing any duplicate connections (representing repeated interactions) and self-interactions, while also consolidating the weights of these interactions for more efficient analysis. This task can be accomplished using igraph's simplify function to create a cleaned-up network that accurately reflects the combined weighted interactions between the animals.

Network Data:
Nodes: Various animal species within a specific habitat
Edges: Interactions between the animals with associated weights representing the intensity or frequency of the interactions

API: igraph's simplify function
### Response:
import igraph as ig

g = ig.Graph([(0, 1), (0, 1), (0, 1), (1, 2), (1, 2), (2, 2)])
g.es['weight'] = [1, 2, 3, 4, 5, 6]
g.simplify(multiple=True, loops=True, combine_edges='sum')
print(g)
print(g.es['weight'])
<|EOT|>
