code: public void write(WeightedGraph<? extends WeightedEdge> g, File gexfFile) 
              throws IOException {
          write(g, gexfFile, null);
      }
docs: Writes the {@link WeightedGraph} to file in {@code gexf} format.