import igraph FileName = './network_with_weights.graphml' g = igraph.load(FileName)