def METHOD_NAME(self):
    inp_file = join(netdir, "Net3.inp")
    wn = wntr.network.WaterNetworkModel(inp_file)
    node_weight = wn.query_node_attribute("elevation")
    link_weight = wn.query_link_attribute("length")
    G = wn.to_graph(node_weight, link_weight)
    self.assertEqual(G.nodes["111"]["weight"], 10 * 0.3048)
    self.assertEqual(G["159"]["161"]["177"]["weight"], 2000 * 0.3048)