How to read a undirected graph stored in a Adjacency Matrix?

g = igraph.Graph.Read_Adjacency(-f"../graf.txt',sep=None, comment_char='#',attribute="weighted")

The adjacency matrix is stored in the txt, and it is a symmetric matrix.“g” is a directed graph,and I need a undirected graph.

I have not tried it, but the documentation says,

Additional positional and keyword arguments not mentioned here are passed intact to Graph.Adjacency.

Thus, I would add mode=igraph.ADJ_UNDIRECTED as a keyword argument.