writePatternGraphView#

biopax-explorer.pattern.view.writePatternGraphView(p1, gimagepath, format='png')[source]#

Generates a graph view of a given Pattern and writes it to an image file.

Args:

p1 (Pattern): The Pattern object to generate the graph view from. gimagepath (str): The path where the generated image file will be saved. format (str, optional): The format of the image file. Defaults to “png”.

Can be “png” or “svg”.

Returns:

str: The DOT string representing the generated graph.