class GraphViz
- GraphViz
- Reference
- Object
Overview
Constants for ruby-graphviz
GraphViz::Constants::FORMATS: the possible output formats "bmp", "canon", "dot", "xdot", "cmap", "dia", "eps", "fig", "gd", "gd2", "gif", "gtk", "hpgl", "ico", "imap", "cmapx", "imap_np", "cmapx_np", "ismap", "jpeg", "jpg", "jpe", "mif", "mp", "pcl", "pdf", "pic", "plain", "plain-ext", "png", "ps", "ps2", "svg", "svgz", "tga", "tiff", "tif", "vml", "vmlz", "vrml", "vtx", "wbmp", "xlib", "none"
GraphViz::Constants::PROGRAMS: The possible programs "dot", "neato", "twopi", "fdp", "circo"
GraphViz::Constants::GRAPHTYPE The possible types of graph "digraph", "graph"
The single letter codes used in constructors map as follows: G => The root graph, with GRAPHATTRS E => Edge, with EDGESATTRS N => Node, with NODESATTRS S => subgraph C => cluster
Defined in:
graphviz.crgraphviz/attrs.cr
graphviz/constants.cr
graphviz/dsl.cr
graphviz/edge.cr
graphviz/node.cr
graphviz/types.cr
graphviz/types/add_double.cr
graphviz/types/add_point.cr
graphviz/types/arrow_type.cr
graphviz/types/bool.cr
graphviz/types/cluster_mode.cr
graphviz/types/color.cr
graphviz/types/color_list.cr
graphviz/types/dir_type.cr
graphviz/types/double.cr
graphviz/types/double_list.cr
graphviz/types/int.cr
graphviz/types/output_mode.cr
graphviz/types/page_dir.cr
graphviz/types/point.cr
graphviz/types/point_list.cr
graphviz/types/port_pos.cr
graphviz/types/quad_type.cr
graphviz/types/rank_dir.cr
graphviz/types/rank_type.cr
graphviz/types/rect.cr
graphviz/types/shape.cr
graphviz/types/smooth_type.cr
graphviz/types/spline_type.cr
graphviz/types/start_type.cr
graphviz/types/string.cr
graphviz/types/view_port.cr
graphviz/version.cr
Constant Summary
-
RESERVED_NAMES =
Set(String).new(["node", "edge", "graph", "digraph", "subgraph", "strict"])
-
VERSION =
"0.1.0"
Constructors
- .new(name : Symbol | String, opts, &)
- .new(name : Symbol | String, **opts, &)
- .new(name : Symbol | String, opts)
- .new(name : Symbol | String, **opts)
Class Method Summary
- .digraph(name, **options, &)
- .escape(str, opts)
- .escape(str, **opts)
- .graph(name, **options, &)
- .strict(name, **options, &)
Instance Method Summary
- #[]=(attr_name : String | Symbol, attr_value)
- #add_edge(node_one, node_two, opts)
- #add_edge(node_one, node_two, **opts)
- #add_edges(node_one : Enumerable(String) | Enumerable(Symbol) | Enumerable(Node) | Node | String | Symbol, node_two : Enumerable(String) | Enumerable(Node) | Node | String | Symbol, opts)
- #add_edges(node_one, node_two, **opts)
- #add_graph(g)
- #add_node(node_name : String, options)
- #add_node(node_name : String, **opts)
- #add_nodes(node_name : Array(String), opts)
- #add_nodes(node_name : Array(String), **opts)
- #add_subgraph(name : String, sg : GraphViz)
- #add_subgraph(name : String, sg : GraphViz, &)
- #delete_subgraph(name)
- #get_node(name)
- #get_node(name, &)
- #to_s(io)
-
#to_s
Returns a nicely readable and concise string representation of this object, typically intended for users.
Macro Summary
Constructor Detail
Class Method Detail
Instance Method Detail
Returns a nicely readable and concise string representation of this object, typically intended for users.
This method should usually not be overridden. It delegates to
#to_s(IO)
which can be overridden for custom implementations.
Also see #inspect
.