parameters: (graph_file, output_format)
return_statement: return graph
docstring: Load a graphml file.
docstring_summary: Load a graphml file.
docstring_tokens: Load a graphml file .
function: def load_graph_data(graph_file, output_format):
      """Load a graphml file."""
  
      if output_format == "pretty":
          sys.stdout.write("Loading graph data...")
          sys.stdout.flush()
      graph = networkx.read_graphml(graph_file)
      if output_format == "pretty":
          sys.stdout.write("Loaded!\n\n")
      return graph
function_tokens: def load_graph_data ( graph_file , output_format ) : if output_format == "pretty" : sys . stdout . write ( "Loading graph data..." ) sys . stdout . flush ( ) graph = networkx . read_graphml ( graph_file ) if output_format == "pretty" : sys . stdout . write ( "Loaded!\n\n" ) return graph