class GraphViz

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.cr
graphviz/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

Class Method Summary

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(name : Symbol | String, opts, &) #

[View source]
def self.new(name : Symbol | String, **opts, &) #

[View source]
def self.new(name : Symbol | String, opts) #

[View source]
def self.new(name : Symbol | String, **opts) #

[View source]

Class Method Detail

def self.digraph(name, **options, &) #

[View source]
def self.escape(str, opts) #

[View source]
def self.escape(str, **opts) #

[View source]
def self.graph(name, **options, &) #

[View source]
def self.strict(name, **options, &) #

[View source]

Instance Method Detail

def []=(attr_name : String | Symbol, attr_value) #

[View source]
def add_edge(node_one, node_two, opts) #

[View source]
def add_edge(node_one, node_two, **opts) #

[View source]
def add_edges(node_one : Enumerable(String) | Enumerable(Symbol) | Enumerable(Node) | Node | String | Symbol, node_two : Enumerable(String) | Enumerable(Node) | Node | String | Symbol, opts) #

[View source]
def add_edges(node_one, node_two, **opts) #

[View source]
def add_graph(g) #

[View source]
def add_node(node_name : String, options) #

[View source]
def add_node(node_name : String, **opts) #

[View source]
def add_nodes(node_name : Array(String), opts) #

[View source]
def add_nodes(node_name : Array(String), **opts) #

[View source]
def add_subgraph(name : String, sg : GraphViz) #

[View source]
def add_subgraph(name : String, sg : GraphViz, &) #

[View source]
def delete_subgraph(name) #

[View source]
def get_node(name) #

[View source]
def get_node(name, &) #

[View source]
def to_s(io) #

[View source]
def to_s #
Description copied from class Object

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.


[View source]

Macro Detail

macro method_missing(call) #

[View source]