Scippy

SCIP

Solving Constraint Integer Programs

Detailed Description

GML graph printing methods.

For a detailed format decription see http://docs.yworks.com/yfiles/doc/developers-guide/gml.html

Functions

void SCIPgmlWriteNode (FILE *file, unsigned int id, const char *label, const char *nodetype, const char *fillcolor, const char *bordercolor)
 
void SCIPgmlWriteNodeWeight (FILE *file, unsigned int id, const char *label, const char *nodetype, const char *fillcolor, const char *bordercolor, SCIP_Real weight)
 
void SCIPgmlWriteEdge (FILE *file, unsigned int source, unsigned int target, const char *label, const char *color)
 
void SCIPgmlWriteArc (FILE *file, unsigned int source, unsigned int target, const char *label, const char *color)
 
void SCIPgmlWriteOpening (FILE *file, SCIP_Bool directed)
 
void SCIPgmlWriteClosing (FILE *file)
 
void SCIPdotWriteOpening (FILE *file)
 
void SCIPdotWriteNode (FILE *file, int node, const char *label, const char *nodetype, const char *fillcolor, const char *bordercolor)
 
void SCIPdotWriteArc (FILE *file, int source, int target, const char *color)
 
void SCIPdotWriteClosing (FILE *file)
 

Function Documentation

◆ SCIPgmlWriteNode()

void SCIPgmlWriteNode ( FILE *  file,
unsigned int  id,
const char *  label,
const char *  nodetype,
const char *  fillcolor,
const char *  bordercolor 
)

writes a node section to the given graph file

Parameters
filefile to write to
idid of the node
labellabel of the node
nodetypetype of the node, or NULL
fillcolorcolor of the node's interior, or NULL
bordercolorcolor of the node's border, or NULL

Definition at line 497 of file misc.c.

References GMLFONTSIZE, GMLNODEBORDERCOLOR, GMLNODEFILLCOLOR, GMLNODEHEIGTH, GMLNODETYPE, GMLNODEWIDTH, and NULL.

Referenced by btPrintSubtree(), SCIPdigraphPrintGml(), SCIPnodePrintAncestorBranchings(), SCIPvisualizeConsCumulative(), and SCIPwriteCliqueGraph().

◆ SCIPgmlWriteNodeWeight()

void SCIPgmlWriteNodeWeight ( FILE *  file,
unsigned int  id,
const char *  label,
const char *  nodetype,
const char *  fillcolor,
const char *  bordercolor,
SCIP_Real  weight 
)

writes a node section including weight to the given graph file

Parameters
filefile to write to
idid of the node
labellabel of the node
nodetypetype of the node, or NULL
fillcolorcolor of the node's interior, or NULL
bordercolorcolor of the node's border, or NULL
weightweight of node

Definition at line 545 of file misc.c.

References GMLFONTSIZE, GMLNODEBORDERCOLOR, GMLNODEFILLCOLOR, GMLNODEHEIGTH, GMLNODETYPE, GMLNODEWIDTH, and NULL.

Referenced by SCIPwriteCliqueGraph().

◆ SCIPgmlWriteEdge()

void SCIPgmlWriteEdge ( FILE *  file,
unsigned int  source,
unsigned int  target,
const char *  label,
const char *  color 
)

writes an edge section to the given graph file

Parameters
filefile to write to
sourcesource node id of the node
targettarget node id of the edge
labellabel of the edge, or NULL
colorcolor of the edge, or NULL

Definition at line 595 of file misc.c.

References GMLEDGECOLOR, GMLFONTSIZE, and NULL.

◆ SCIPgmlWriteArc()

void SCIPgmlWriteArc ( FILE *  file,
unsigned int  source,
unsigned int  target,
const char *  label,
const char *  color 
)

writes an arc section to the given graph file

Parameters
filefile to write to
sourcesource node id of the node
targettarget node id of the edge
labellabel of the edge, or NULL
colorcolor of the edge, or NULL

Definition at line 639 of file misc.c.

References GMLEDGECOLOR, GMLFONTSIZE, and NULL.

Referenced by btPrintSubtree(), SCIPdigraphPrintGml(), SCIPnodePrintAncestorBranchings(), SCIPvisualizeConsCumulative(), and SCIPwriteCliqueGraph().

◆ SCIPgmlWriteOpening()

void SCIPgmlWriteOpening ( FILE *  file,
SCIP_Bool  directed 
)

writes the starting line to a GML graph file, does not open a file

Parameters
filefile to write to
directedis the graph directed

Definition at line 683 of file misc.c.

References NULL.

Referenced by SCIPbtPrintGml(), SCIPdigraphPrintGml(), SCIPnodePrintAncestorBranchings(), SCIPvisualizeConsCumulative(), and SCIPwriteCliqueGraph().

◆ SCIPgmlWriteClosing()

void SCIPgmlWriteClosing ( FILE *  file)

writes the ending lines to a GML graph file, does not close a file

Parameters
filefile to close

Definition at line 699 of file misc.c.

References NULL.

Referenced by SCIPbtPrintGml(), SCIPdigraphPrintGml(), SCIPnodePrintAncestorBranchings(), SCIPvisualizeConsCumulative(), and SCIPwriteCliqueGraph().

◆ SCIPdotWriteOpening()

void SCIPdotWriteOpening ( FILE *  file)

writes the opening line to a dot graph file, does not open a file

Parameters
filefile to write to

Definition at line 711 of file misc.c.

References NULL.

◆ SCIPdotWriteNode()

void SCIPdotWriteNode ( FILE *  file,
int  node,
const char *  label,
const char *  nodetype,
const char *  fillcolor,
const char *  bordercolor 
)

adds a node to the dot graph

Parameters
filefile to write to
nodenode id
labelnode label
nodetypetype of the node, or NULL
fillcolorcolor of the node's interior, or NULL
bordercolorcolor of the node's border, or NULL

Definition at line 721 of file misc.c.

References NULL.

◆ SCIPdotWriteArc()

void SCIPdotWriteArc ( FILE *  file,
int  source,
int  target,
const char *  color 
)

adds an arc (edge) between two nodes in the dot graph

Parameters
filefile to write to
sourcesource node id of the node
targettarget node id of the edge
colorcolor of the edge, or NULL

Definition at line 736 of file misc.c.

References NULL.

◆ SCIPdotWriteClosing()

void SCIPdotWriteClosing ( FILE *  file)

writes the closing line to a dot graph file, does not close a file

Parameters
filefile to write to

Definition at line 749 of file misc.c.

References NULL.