def METHOD_NAME(infile: Path, outfile: Path, edge_types: List[str]) -> None:
    with text_out(outfile) as fh:
        exporter = NXGraphExporter(fh, edge_types=edge_types)
        export_stream(exporter, infile)