external# g2ig# gunfolds.conversions.g2ig(g)[source]# Converts our graph representation to an igraph for plotting Parameters: g (dictionary (gunfolds graphs)) – gunfolds graph Returns: igraph representation of gunfolds graph Return type: igraph graph2dot# gunfolds.conversions.graph2dot(g, filename)[source]# Save the graph structure of g to a graphviz format dot file with the name filename Parameters: g (dictionary (gunfolds graphs)) – gunfolds graph filename (string) – name of the file graph2nx# gunfolds.conversions.graph2nx(G)[source]# Convert a gunfolds graph to NetworkX format ignoring bidirected edges Parameters: G (dictionary (gunfolds graphs)) – gunfolds format graph Returns: NetworkX format graph Return type: NetworkX graph nx2graph# gunfolds.conversions.nx2graph(G)[source]# Convert NetworkX format graph to gunfolds graph ignoring bidirected edges Parameters: G (dictionary (gunfolds graphs)) – gunfolds format graph Returns: gunfolds graph Return type: dictionary (gunfolds graphs)