Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 13 years ago

juanpool gravatar image

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

updated 10 years ago

FrédéricC gravatar image

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

updated 10 years ago

FrédéricC gravatar image

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.