def set_edge_weight(self, edge, wt):
self.set_edge_properties(edge, weight=wt )<EOL>if not self.DIRECTED:<EOL><INDENT>self.set_edge_properties((edge[<NUM_LIT:1>], edge[<NUM_LIT:0>]) , weight=wt )<EOL><DEDENT>
Set the weight of an edge.

@type  edge: edge
@param edge: One edge.

@type  wt: number
@param wt: Edge weight.