Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

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.

click to hide/show revision 2
retagged

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.

click to hide/show revision 3
retagged

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.