# Revision history [back]

### Convert Sage's Graph to NetworkX graph

I want to use a function of networkx. More specifically I want to use the function

double_edge_swap()


provided in the networkx package included in Sage. For more information see here.

But, I have a Sage graph constructed with:

Graph()


So I want to convert the Sage's Graph() object to a networkx object. How I do that?

Best regards.

 2 retagged FrédéricC 2604 ●3 ●29 ●54

### Convert Sage's Graph to NetworkX graph

I want to use a function of networkx. More specifically I want to use the function

double_edge_swap()


provided in the networkx package included in Sage. For more information see here.

But, I have a Sage graph constructed with:

Graph()


So I want to convert the Sage's Graph() object to a networkx object. How I do that?

Best regards.

 3 retagged FrédéricC 2604 ●3 ●29 ●54

### Convert Sage's Graph to NetworkX graph

I want to use a function of networkx. More specifically I want to use the function

double_edge_swap()


provided in the networkx package included in Sage. For more information see here.

But, I have a Sage graph constructed with:

Graph()


So I want to convert the Sage's Graph() object to a networkx object. How I do that?

Best regards.