to_dot
Produces the DOT representation of a graph.
For more information, see https://graphviz.org/doc/info/attrs.html.
Parameters
- g : SAS graph object
-
Specifies the input graph to assess.
- nodes_label : str or None, optional
-
Specifies the name of an attribute to use as the node label. The default is None.
- nodes_shape : str, optional
-
Specifies the shape of nodes in the graph. The default is ‘circle’.
- nodes_size : numeric or None, optional
-
Specifies the size of nodes in the graph. The default is None.
- nodes_style : str or None, optional
-
Specifies the style descriptor to apply to all nodes. The default is None.
- nodes_size_scale : int, optional
-
Specifies a scale factor to apply to each per-node size attribute. The default is 1.
- nodes_color : str or None, optional
-
Specifies the name of an attribute to use as the node color. The default is None.
- nodes_color_by : str or None, optional
-
Specifies the name of an attribute to map to node colors. The default is None.
- node_attrs : dict or None, optional
-
Specifies a dictionary that maps Graphviz-supported node attributes to their respective graph node attribute names. The default is None.
- nodes_attrs : dict or None, optional
-
Specifies a dictionary that maps Graphviz-supported node attributes to a constant value. The dictionary provides a default to all nodes unless you specify a node-specific value for this parameter. The default is None.
- edges_label : str or None, optional
-
Specifies the name of an attribute to use as the edge label. The default is None.
- edges_color : str or None, optional
-
Specifies the name of an attribute to use as the edge color. The default is None.
- edges_style : str or None, optional
-
Specifies the style descriptor to apply to all edges. The default is None.
- edges_color_by : str or None, optional
-
Specifies the name of an attribute to map to edge colors. The default is None.
- edge_attrs : dict or None, optional
-
Specifies a dictionary that maps Graphviz-supported edge attributes to their respective graph edge attribute names. The default is None.
- edges_attrs : dict or None, optional
-
Specifies a dictionary that maps Graphviz-supported edge attributes to a constant value. The dictionary provides a default to all edges unless you specify an edge-specific value for this parameter. The default is None.
- graph_attrs : dict or None, optional
-
Specifies a dictionary that maps Graphviz-supported graph attributes to a constant value. The default is None.
- output_file : str or None, optional
-
Specifies the path to an output file to write the DOT representation. The default is None.
- size : int, optional
-
Specifies the desired size of the rendered graph. The default is 10.
- layout : str, optional
-
Specifies the desired layout of the rendered graph. By default, no layout is included in the DOT representation.
Returns
- str
-
Returns the graph that is represented in DOT format.