roast-ai 0.4.4 → 0.4.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (232) hide show
  1. checksums.yaml +4 -4
  2. data/.github/CODEOWNERS +2 -0
  3. data/.github/workflows/ci.yaml +1 -0
  4. data/.gitignore +0 -26
  5. data/.rubocop.yml +13 -0
  6. data/.rubocop_todo.yml +21 -0
  7. data/CHANGELOG.md +37 -0
  8. data/Gemfile +4 -0
  9. data/Gemfile.lock +43 -1
  10. data/bin/rubocop +27 -0
  11. data/bin/spoom +27 -0
  12. data/bin/srb +27 -0
  13. data/bin/srb-rbi +27 -0
  14. data/bin/tapioca +27 -0
  15. data/docs/INSTRUMENTATION.md +3 -3
  16. data/dsl/simple.rb +10 -0
  17. data/examples/retry/workflow.yml +23 -0
  18. data/lib/roast/dsl/executor.rb +26 -0
  19. data/lib/roast/dsl.rb +7 -0
  20. data/lib/roast/errors.rb +1 -0
  21. data/lib/roast/factories/api_provider_factory.rb +1 -0
  22. data/lib/roast/helpers/function_caching_interceptor.rb +3 -0
  23. data/lib/roast/helpers/logger.rb +6 -9
  24. data/lib/roast/helpers/metadata_access.rb +1 -0
  25. data/lib/roast/helpers/minitest_coverage_runner.rb +1 -0
  26. data/lib/roast/helpers/path_resolver.rb +8 -18
  27. data/lib/roast/helpers/prompt_loader.rb +3 -2
  28. data/lib/roast/helpers/timeout_handler.rb +3 -5
  29. data/lib/roast/initializers.rb +1 -0
  30. data/lib/roast/resources/api_resource.rb +4 -3
  31. data/lib/roast/resources/base_resource.rb +1 -0
  32. data/lib/roast/resources/directory_resource.rb +1 -0
  33. data/lib/roast/resources/file_resource.rb +1 -0
  34. data/lib/roast/resources/none_resource.rb +1 -0
  35. data/lib/roast/resources/url_resource.rb +2 -1
  36. data/lib/roast/resources.rb +1 -2
  37. data/lib/roast/services/context_threshold_checker.rb +1 -0
  38. data/lib/roast/services/token_counting_service.rb +1 -0
  39. data/lib/roast/tools/apply_diff.rb +1 -0
  40. data/lib/roast/tools/ask_user.rb +1 -0
  41. data/lib/roast/tools/bash.rb +1 -0
  42. data/lib/roast/tools/cmd.rb +1 -0
  43. data/lib/roast/tools/coding_agent.rb +1 -0
  44. data/lib/roast/tools/context_summarizer.rb +1 -0
  45. data/lib/roast/tools/grep.rb +1 -0
  46. data/lib/roast/tools/helpers/coding_agent_message_formatter.rb +1 -0
  47. data/lib/roast/tools/read_file.rb +1 -0
  48. data/lib/roast/tools/search_file.rb +1 -0
  49. data/lib/roast/tools/swarm.rb +1 -0
  50. data/lib/roast/tools/update_files.rb +1 -0
  51. data/lib/roast/tools/write_file.rb +1 -0
  52. data/lib/roast/tools.rb +2 -0
  53. data/lib/roast/value_objects/api_token.rb +1 -0
  54. data/lib/roast/value_objects/step_name.rb +1 -0
  55. data/lib/roast/value_objects/uri_base.rb +1 -0
  56. data/lib/roast/value_objects/workflow_path.rb +1 -0
  57. data/lib/roast/value_objects.rb +1 -0
  58. data/lib/roast/version.rb +2 -1
  59. data/lib/roast/workflow/agent_step.rb +1 -0
  60. data/lib/roast/workflow/api_configuration.rb +1 -0
  61. data/lib/roast/workflow/base_iteration_step.rb +1 -0
  62. data/lib/roast/workflow/base_step.rb +1 -0
  63. data/lib/roast/workflow/base_workflow.rb +1 -0
  64. data/lib/roast/workflow/case_executor.rb +1 -0
  65. data/lib/roast/workflow/case_step.rb +1 -0
  66. data/lib/roast/workflow/command_executor.rb +1 -0
  67. data/lib/roast/workflow/conditional_executor.rb +1 -0
  68. data/lib/roast/workflow/conditional_step.rb +1 -0
  69. data/lib/roast/workflow/configuration.rb +9 -0
  70. data/lib/roast/workflow/configuration_loader.rb +4 -1
  71. data/lib/roast/workflow/context_manager.rb +1 -0
  72. data/lib/roast/workflow/context_path_resolver.rb +1 -0
  73. data/lib/roast/workflow/dot_access_hash.rb +1 -0
  74. data/lib/roast/workflow/each_step.rb +1 -0
  75. data/lib/roast/workflow/error_handler.rb +39 -3
  76. data/lib/roast/workflow/expression_evaluator.rb +1 -0
  77. data/lib/roast/workflow/expression_utils.rb +1 -0
  78. data/lib/roast/workflow/file_state_repository.rb +2 -1
  79. data/lib/roast/workflow/input_executor.rb +1 -0
  80. data/lib/roast/workflow/input_step.rb +1 -0
  81. data/lib/roast/workflow/interpolator.rb +2 -1
  82. data/lib/roast/workflow/iteration_executor.rb +1 -0
  83. data/lib/roast/workflow/llm_boolean_coercer.rb +1 -0
  84. data/lib/roast/workflow/metadata_manager.rb +1 -0
  85. data/lib/roast/workflow/output_handler.rb +1 -0
  86. data/lib/roast/workflow/output_manager.rb +1 -0
  87. data/lib/roast/workflow/parallel_executor.rb +1 -0
  88. data/lib/roast/workflow/prompt_step.rb +1 -0
  89. data/lib/roast/workflow/repeat_step.rb +1 -0
  90. data/lib/roast/workflow/replay_handler.rb +1 -0
  91. data/lib/roast/workflow/resource_resolver.rb +2 -6
  92. data/lib/roast/workflow/session_manager.rb +1 -0
  93. data/lib/roast/workflow/shell_script_step.rb +1 -0
  94. data/lib/roast/workflow/sqlite_state_repository.rb +1 -0
  95. data/lib/roast/workflow/state_manager.rb +1 -0
  96. data/lib/roast/workflow/state_repository.rb +1 -0
  97. data/lib/roast/workflow/state_repository_factory.rb +4 -2
  98. data/lib/roast/workflow/step_completion_reporter.rb +1 -0
  99. data/lib/roast/workflow/step_executor_coordinator.rb +17 -6
  100. data/lib/roast/workflow/step_executor_factory.rb +1 -0
  101. data/lib/roast/workflow/step_executor_registry.rb +2 -3
  102. data/lib/roast/workflow/step_executor_with_reporting.rb +1 -0
  103. data/lib/roast/workflow/step_executors/base_step_executor.rb +1 -0
  104. data/lib/roast/workflow/step_executors/hash_step_executor.rb +1 -0
  105. data/lib/roast/workflow/step_executors/parallel_step_executor.rb +1 -0
  106. data/lib/roast/workflow/step_executors/string_step_executor.rb +1 -0
  107. data/lib/roast/workflow/step_factory.rb +1 -0
  108. data/lib/roast/workflow/step_finder.rb +1 -0
  109. data/lib/roast/workflow/step_loader.rb +1 -0
  110. data/lib/roast/workflow/step_name_extractor.rb +1 -0
  111. data/lib/roast/workflow/step_runner.rb +1 -0
  112. data/lib/roast/workflow/step_type_resolver.rb +1 -0
  113. data/lib/roast/workflow/validation_command.rb +1 -0
  114. data/lib/roast/workflow/validator.rb +1 -0
  115. data/lib/roast/workflow/validators/base_validator.rb +1 -0
  116. data/lib/roast/workflow/validators/dependency_validator.rb +1 -0
  117. data/lib/roast/workflow/validators/linting_validator.rb +1 -0
  118. data/lib/roast/workflow/validators/schema_validator.rb +1 -0
  119. data/lib/roast/workflow/validators/step_collector.rb +1 -0
  120. data/lib/roast/workflow/validators/validation_orchestrator.rb +1 -0
  121. data/lib/roast/workflow/workflow_context.rb +1 -0
  122. data/lib/roast/workflow/workflow_execution_context.rb +1 -0
  123. data/lib/roast/workflow/workflow_executor.rb +2 -1
  124. data/lib/roast/workflow/workflow_initializer.rb +16 -1
  125. data/lib/roast/workflow/workflow_runner.rb +66 -55
  126. data/lib/roast/workflow.rb +1 -0
  127. data/lib/roast/workflow_diagram_generator.rb +3 -2
  128. data/lib/roast.rb +23 -8
  129. data/sorbet/config +8 -0
  130. data/sorbet/rbi/dsl/.gitattributes +1 -0
  131. data/sorbet/rbi/dsl/active_support/callbacks.rbi +21 -0
  132. data/sorbet/rbi/gems/.gitattributes +1 -0
  133. data/sorbet/rbi/gems/activesupport@8.0.2.rbi +19107 -0
  134. data/sorbet/rbi/gems/addressable@2.8.7.rbi +1994 -0
  135. data/sorbet/rbi/gems/ast@2.4.3.rbi +585 -0
  136. data/sorbet/rbi/gems/base64@0.3.0.rbi +545 -0
  137. data/sorbet/rbi/gems/benchmark@0.4.1.rbi +619 -0
  138. data/sorbet/rbi/gems/bigdecimal@3.2.2.rbi +62 -0
  139. data/sorbet/rbi/gems/cgi@0.5.0.rbi +2961 -0
  140. data/sorbet/rbi/gems/claude_swarm@0.1.19.rbi +568 -0
  141. data/sorbet/rbi/gems/cli-kit@5.0.1.rbi +1991 -0
  142. data/sorbet/rbi/gems/cli-ui@2.3.0.rbi +3181 -0
  143. data/sorbet/rbi/gems/coderay@1.1.3.rbi +9 -0
  144. data/sorbet/rbi/gems/concurrent-ruby@1.3.5.rbi +11657 -0
  145. data/sorbet/rbi/gems/connection_pool@2.5.3.rbi +9 -0
  146. data/sorbet/rbi/gems/crack@1.0.0.rbi +145 -0
  147. data/sorbet/rbi/gems/diff-lcs@1.6.2.rbi +972 -0
  148. data/sorbet/rbi/gems/dotenv@3.1.8.rbi +295 -0
  149. data/sorbet/rbi/gems/drb@2.2.3.rbi +1661 -0
  150. data/sorbet/rbi/gems/dry-configurable@1.3.0.rbi +672 -0
  151. data/sorbet/rbi/gems/dry-core@1.1.0.rbi +1894 -0
  152. data/sorbet/rbi/gems/dry-inflector@1.2.0.rbi +659 -0
  153. data/sorbet/rbi/gems/dry-initializer@3.2.0.rbi +781 -0
  154. data/sorbet/rbi/gems/dry-logic@1.6.0.rbi +1127 -0
  155. data/sorbet/rbi/gems/dry-schema@1.14.1.rbi +3727 -0
  156. data/sorbet/rbi/gems/dry-types@1.8.3.rbi +3969 -0
  157. data/sorbet/rbi/gems/erubi@1.13.1.rbi +155 -0
  158. data/sorbet/rbi/gems/event_stream_parser@1.0.0.rbi +49 -0
  159. data/sorbet/rbi/gems/faraday-multipart@1.1.1.rbi +283 -0
  160. data/sorbet/rbi/gems/faraday-net_http@3.4.1.rbi +147 -0
  161. data/sorbet/rbi/gems/faraday-retry@2.3.2.rbi +9 -0
  162. data/sorbet/rbi/gems/faraday@2.13.1.rbi +2977 -0
  163. data/sorbet/rbi/gems/fast-mcp-annotations@1.5.3.rbi +1588 -0
  164. data/sorbet/rbi/gems/ffi@1.17.2.rbi +9 -0
  165. data/sorbet/rbi/gems/formatador@1.1.0.rbi +9 -0
  166. data/sorbet/rbi/gems/guard-compat@1.2.1.rbi +102 -0
  167. data/sorbet/rbi/gems/guard-minitest@2.4.6.rbi +402 -0
  168. data/sorbet/rbi/gems/guard@2.19.1.rbi +2283 -0
  169. data/sorbet/rbi/gems/hashdiff@1.2.0.rbi +355 -0
  170. data/sorbet/rbi/gems/i18n@1.14.7.rbi +2359 -0
  171. data/sorbet/rbi/gems/json-schema@5.1.1.rbi +1466 -0
  172. data/sorbet/rbi/gems/json@2.12.2.rbi +2051 -0
  173. data/sorbet/rbi/gems/language_server-protocol@3.17.0.5.rbi +9 -0
  174. data/sorbet/rbi/gems/lint_roller@1.1.0.rbi +9 -0
  175. data/sorbet/rbi/gems/listen@3.9.0.rbi +1206 -0
  176. data/sorbet/rbi/gems/logger@1.7.0.rbi +963 -0
  177. data/sorbet/rbi/gems/lumberjack@1.2.10.rbi +1830 -0
  178. data/sorbet/rbi/gems/method_source@1.1.0.rbi +9 -0
  179. data/sorbet/rbi/gems/mime-types-data@3.2025.0617.rbi +136 -0
  180. data/sorbet/rbi/gems/mime-types@3.7.0.rbi +1342 -0
  181. data/sorbet/rbi/gems/minitest-rg@5.3.0.rbi +160 -0
  182. data/sorbet/rbi/gems/minitest@5.25.5.rbi +1640 -0
  183. data/sorbet/rbi/gems/mocha@2.7.1.rbi +12 -0
  184. data/sorbet/rbi/gems/multipart-post@2.4.1.rbi +244 -0
  185. data/sorbet/rbi/gems/nenv@0.3.0.rbi +147 -0
  186. data/sorbet/rbi/gems/net-http@0.6.0.rbi +4247 -0
  187. data/sorbet/rbi/gems/netrc@0.11.0.rbi +159 -0
  188. data/sorbet/rbi/gems/notiffany@0.1.3.rbi +1079 -0
  189. data/sorbet/rbi/gems/open_router@0.3.3.rbi +230 -0
  190. data/sorbet/rbi/gems/ostruct@0.6.2.rbi +354 -0
  191. data/sorbet/rbi/gems/parallel@1.27.0.rbi +291 -0
  192. data/sorbet/rbi/gems/parser@3.3.8.0.rbi +5535 -0
  193. data/sorbet/rbi/gems/prism@1.4.0.rbi +41732 -0
  194. data/sorbet/rbi/gems/pry@0.15.2.rbi +9 -0
  195. data/sorbet/rbi/gems/public_suffix@6.0.2.rbi +936 -0
  196. data/sorbet/rbi/gems/racc@1.8.1.rbi +158 -0
  197. data/sorbet/rbi/gems/rack@2.2.17.rbi +5659 -0
  198. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +9 -0
  199. data/sorbet/rbi/gems/raix@1.0.2.rbi +1104 -0
  200. data/sorbet/rbi/gems/rake@13.3.0.rbi +3036 -0
  201. data/sorbet/rbi/gems/rb-fsevent@0.11.2.rbi +9 -0
  202. data/sorbet/rbi/gems/rb-inotify@0.11.1.rbi +9 -0
  203. data/sorbet/rbi/gems/rbi@0.3.6.rbi +6893 -0
  204. data/sorbet/rbi/gems/rbs@3.9.4.rbi +6978 -0
  205. data/sorbet/rbi/gems/regexp_parser@2.10.0.rbi +9 -0
  206. data/sorbet/rbi/gems/rexml@3.4.1.rbi +5346 -0
  207. data/sorbet/rbi/gems/rubocop-ast@1.45.1.rbi +9 -0
  208. data/sorbet/rbi/gems/rubocop-shopify@2.17.1.rbi +9 -0
  209. data/sorbet/rbi/gems/rubocop@1.77.0.rbi +9 -0
  210. data/sorbet/rbi/gems/ruby-graphviz@1.2.5.rbi +1333 -0
  211. data/sorbet/rbi/gems/ruby-openai@8.1.0.rbi +758 -0
  212. data/sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi +9 -0
  213. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +9 -0
  214. data/sorbet/rbi/gems/securerandom@0.4.1.rbi +75 -0
  215. data/sorbet/rbi/gems/shellany@0.0.1.rbi +102 -0
  216. data/sorbet/rbi/gems/spoom@1.6.3.rbi +6985 -0
  217. data/sorbet/rbi/gems/sqlite3@2.7.0.rbi +1900 -0
  218. data/sorbet/rbi/gems/tapioca@0.16.11.rbi +3628 -0
  219. data/sorbet/rbi/gems/thor@1.4.0.rbi +4399 -0
  220. data/sorbet/rbi/gems/tzinfo@2.0.6.rbi +5918 -0
  221. data/sorbet/rbi/gems/unicode-display_width@3.1.4.rbi +9 -0
  222. data/sorbet/rbi/gems/unicode-emoji@4.0.4.rbi +9 -0
  223. data/sorbet/rbi/gems/uri@1.0.3.rbi +2349 -0
  224. data/sorbet/rbi/gems/vcr@6.3.1.rbi +3040 -0
  225. data/sorbet/rbi/gems/webmock@3.25.1.rbi +1792 -0
  226. data/sorbet/rbi/gems/yard-sorbet@0.9.0.rbi +435 -0
  227. data/sorbet/rbi/gems/yard@0.9.37.rbi +18492 -0
  228. data/sorbet/rbi/gems/zeitwerk@2.7.3.rbi +1429 -0
  229. data/sorbet/tapioca/config.yml +13 -0
  230. data/sorbet/tapioca/require.rb +36 -0
  231. metadata +114 -2
  232. data/lib/roast/workflow/configuration_parser.rb +0 -54
@@ -0,0 +1,1333 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ruby-graphviz` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ruby-graphviz`.
6
+
7
+
8
+ # source://ruby-graphviz//lib/graphviz.rb#20
9
+ ::IS_CYGWIN = T.let(T.unsafe(nil), FalseClass)
10
+
11
+ # source://ruby-graphviz//lib/graphviz.rb#19
12
+ ::IS_JRUBY = T.let(T.unsafe(nil), FalseClass)
13
+
14
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#17
15
+ class AttributeException < ::RuntimeError; end
16
+
17
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#1
18
+ class BoolException < ::RuntimeError; end
19
+
20
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#3
21
+ class ColorException < ::RuntimeError; end
22
+
23
+ # source://ruby-graphviz//lib/graphviz/dot2ruby.rb#21
24
+ class Dot2Ruby
25
+ include ::GraphViz::Utils
26
+
27
+ # @return [Dot2Ruby] a new instance of Dot2Ruby
28
+ #
29
+ # source://ruby-graphviz//lib/graphviz/dot2ruby.rb#24
30
+ def initialize(xGVPath, xOutFile, xOutFormat = T.unsafe(nil)); end
31
+
32
+ # source://ruby-graphviz//lib/graphviz/dot2ruby.rb#47
33
+ def eval(xFile); end
34
+
35
+ # source://ruby-graphviz//lib/graphviz/dot2ruby.rb#54
36
+ def eval_string(data); end
37
+
38
+ # source://ruby-graphviz//lib/graphviz/dot2ruby.rb#35
39
+ def run(xFile); end
40
+ end
41
+
42
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#1
43
+ class DoubleException < ::RuntimeError; end
44
+
45
+ # spliteType or point
46
+ #
47
+ # spline ( ';' spline )*
48
+ # where spline = (endp)? (startp)? point (triple)+
49
+ # and triple = point point point
50
+ # and endp = "e,%f,%f"
51
+ # and startp = "s,%f,%f"
52
+ #
53
+ # If a spline has points p1 p2 p3 ... pn, (n = 1 (mod 3)), the points correspond
54
+ # to the control points of a B-spline from p1 to pn. If startp is given, it touches
55
+ # one node of the edge, and the arrowhead goes from p1 to startp. If startp is not
56
+ # given, p1 touches a node. Similarly for pn and endp.
57
+ #
58
+ # source://ruby-graphviz//lib/graphviz/utils.rb#3
59
+ class GraphViz
60
+ include ::GraphViz::Constants
61
+ include ::GraphViz::Utils
62
+
63
+ # Create a new graph object
64
+ #
65
+ # Options :
66
+ # * :output : Output format (GraphViz::Constants::FORMATS) (default : dot)
67
+ # * :file : Output file name (default : nil)
68
+ # * :use : Program to use (GraphViz::Constants::PROGRAMS) (default : dot)
69
+ # * :path : Program PATH
70
+ # * :parent : Parent graph (default : nil)
71
+ # * :type : Graph type (GraphViz::Constants::GRAPHTYPE) (default : digraph)
72
+ # * :errors : DOT error level (default 1)
73
+ # * 0 = Error + Warning
74
+ # * 1 = Error
75
+ # * 2 = none
76
+ #
77
+ # @return [GraphViz] a new instance of GraphViz
78
+ # @yield [_self]
79
+ # @yieldparam _self [GraphViz] the object that the method was called on
80
+ #
81
+ # source://ruby-graphviz//lib/graphviz.rb#824
82
+ def initialize(xGraphName, hOpts = T.unsafe(nil), &block); end
83
+
84
+ # Create an edge between the current cluster and the node or cluster +oNode+
85
+ #
86
+ # @raise [ArgumentError]
87
+ #
88
+ # source://ruby-graphviz//lib/graphviz.rb#670
89
+ def -(oNode); end
90
+
91
+ # Create an edge between the current cluster and the node or cluster +oNode+
92
+ #
93
+ # @raise [ArgumentError]
94
+ #
95
+ # source://ruby-graphviz//lib/graphviz.rb#670
96
+ def <<(oNode); end
97
+
98
+ # Create an edge between the current cluster and the node or cluster +oNode+
99
+ #
100
+ # @raise [ArgumentError]
101
+ #
102
+ # source://ruby-graphviz//lib/graphviz.rb#670
103
+ def >(oNode); end
104
+
105
+ # Create an edge between the current cluster and the node or cluster +oNode+
106
+ #
107
+ # @raise [ArgumentError]
108
+ #
109
+ # source://ruby-graphviz//lib/graphviz.rb#670
110
+ def >>(oNode); end
111
+
112
+ # Get the value of the graph attribute +xAttrName+
113
+ #
114
+ # source://ruby-graphviz//lib/graphviz.rb#394
115
+ def [](xAttrName); end
116
+
117
+ # Set value +xValue+ to the graph attribute +xAttrName+
118
+ #
119
+ # source://ruby-graphviz//lib/graphviz.rb#386
120
+ def []=(xAttrName, xValue); end
121
+
122
+ # Add nodes and edges defined by a Hash
123
+ #
124
+ # source://ruby-graphviz//lib/graphviz.rb#332
125
+ def add(h); end
126
+
127
+ # source://ruby-graphviz//lib/graphviz.rb#191
128
+ def add_edge(oNodeOne, oNodeTwo, hOpts = T.unsafe(nil)); end
129
+
130
+ # Create a new edge
131
+ #
132
+ # In:
133
+ # * node_one : First node (or node list)
134
+ # * node_two : Second Node (or node list)
135
+ # * options : Edge attributes
136
+ #
137
+ # source://ruby-graphviz//lib/graphviz.rb#204
138
+ def add_edges(node_one, node_two, options = T.unsafe(nil)); end
139
+
140
+ # Create a new graph
141
+ #
142
+ # In:
143
+ # * xGraphName : Graph name
144
+ # * hOpts : Graph attributes
145
+ #
146
+ # source://ruby-graphviz//lib/graphviz.rb#269
147
+ def add_graph(xGraphName = T.unsafe(nil), hOpts = T.unsafe(nil), &block); end
148
+
149
+ # source://ruby-graphviz//lib/graphviz.rb#85
150
+ def add_node(xNodeName, hOpts = T.unsafe(nil)); end
151
+
152
+ # Create a new node
153
+ #
154
+ # In:
155
+ # * xNodeName : Name of the new node
156
+ # * hOpts : Node attributes
157
+ #
158
+ # Return the GraphViz::Node object created
159
+ #
160
+ # source://ruby-graphviz//lib/graphviz.rb#99
161
+ def add_nodes(node_name, options = T.unsafe(nil)); end
162
+
163
+ # source://ruby-graphviz//lib/graphviz.rb#627
164
+ def append_attributes_and_types(script); end
165
+
166
+ # Return a new completed graph
167
+ #
168
+ # source://ruby-graphviz//lib/graphviz.rb#776
169
+ def complete; end
170
+
171
+ # Complete the current graph
172
+ #
173
+ # source://ruby-graphviz//lib/graphviz.rb#781
174
+ def complete!; end
175
+
176
+ # Return true if the graph is directed.
177
+ #
178
+ # @return [Boolean]
179
+ #
180
+ # source://ruby-graphviz//lib/graphviz.rb#787
181
+ def directed?; end
182
+
183
+ # source://ruby-graphviz//lib/graphviz.rb#418
184
+ def each_attribut(&b); end
185
+
186
+ # Calls block once for each attribute of the graph, passing the name and value to the
187
+ # block as a two-element array.
188
+ #
189
+ # source://ruby-graphviz//lib/graphviz.rb#413
190
+ def each_attribute(&b); end
191
+
192
+ # Allow you to traverse edges
193
+ #
194
+ # source://ruby-graphviz//lib/graphviz.rb#237
195
+ def each_edge(&block); end
196
+
197
+ # Allow you to traverse graphs
198
+ #
199
+ # source://ruby-graphviz//lib/graphviz.rb#319
200
+ def each_graph(&block); end
201
+
202
+ # Allow you to traverse nodes
203
+ #
204
+ # source://ruby-graphviz//lib/graphviz.rb#176
205
+ def each_node(&block); end
206
+
207
+ # This accessor allow you to set global edges attributes
208
+ #
209
+ # source://ruby-graphviz//lib/graphviz.rb#79
210
+ def edge; end
211
+
212
+ # This accessor allow you to set global edges attributes
213
+ #
214
+ # source://ruby-graphviz//lib/graphviz.rb#79
215
+ def edge=(_arg0); end
216
+
217
+ # This accessor allow you to set global edges attributes
218
+ #
219
+ # source://ruby-graphviz//lib/graphviz.rb#79
220
+ def edge_attrs; end
221
+
222
+ # Get the number of edges
223
+ #
224
+ # source://ruby-graphviz//lib/graphviz.rb#250
225
+ def edge_count; end
226
+
227
+ # source://ruby-graphviz//lib/graphviz.rb#156
228
+ def enumerate_nodes; end
229
+
230
+ # Returns the first node found in the entire graph, starting from the root graph
231
+ #
232
+ # source://ruby-graphviz//lib/graphviz.rb#140
233
+ def find_node(name); end
234
+
235
+ # Return the edge object for the given index
236
+ #
237
+ # source://ruby-graphviz//lib/graphviz.rb#257
238
+ def get_edge_at_index(index); end
239
+
240
+ # Return the graph object for the given name (or nil)
241
+ #
242
+ # @yield [graph]
243
+ #
244
+ # source://ruby-graphviz//lib/graphviz.rb#308
245
+ def get_graph(xGraphName, &block); end
246
+
247
+ # Return the node object for the given name (or nil) in the current graph
248
+ #
249
+ # @yield [node]
250
+ #
251
+ # source://ruby-graphviz//lib/graphviz.rb#131
252
+ def get_node(xNodeName, &block); end
253
+
254
+ # Return the node object for the given index
255
+ #
256
+ # source://ruby-graphviz//lib/graphviz.rb#168
257
+ def get_node_at_index(index); end
258
+
259
+ # This accessor allow you to set global graph attributes
260
+ #
261
+ # source://ruby-graphviz//lib/graphviz.rb#71
262
+ def graph; end
263
+
264
+ # This accessor allow you to set global graph attributes
265
+ #
266
+ # source://ruby-graphviz//lib/graphviz.rb#71
267
+ def graph=(_arg0); end
268
+
269
+ # This accessor allow you to set global graph attributes
270
+ #
271
+ # source://ruby-graphviz//lib/graphviz.rb#71
272
+ def graph_attrs; end
273
+
274
+ # Get the number of graphs
275
+ #
276
+ # source://ruby-graphviz//lib/graphviz.rb#353
277
+ def graph_count; end
278
+
279
+ # @return [Boolean]
280
+ #
281
+ # source://ruby-graphviz//lib/graphviz.rb#791
282
+ def has_parent_graph?; end
283
+
284
+ # Get the graph name
285
+ #
286
+ # source://ruby-graphviz//lib/graphviz.rb#662
287
+ def id; end
288
+
289
+ # source://ruby-graphviz//lib/graphviz.rb#357
290
+ def method_missing(idName, *args, &block); end
291
+
292
+ # Get the graph name
293
+ #
294
+ # source://ruby-graphviz//lib/graphviz.rb#662
295
+ def name; end
296
+
297
+ # This accessor allow you to set global nodes attributes
298
+ #
299
+ # source://ruby-graphviz//lib/graphviz.rb#75
300
+ def node; end
301
+
302
+ # This accessor allow you to set global nodes attributes
303
+ #
304
+ # source://ruby-graphviz//lib/graphviz.rb#75
305
+ def node=(_arg0); end
306
+
307
+ # This accessor allow you to set global nodes attributes
308
+ #
309
+ # source://ruby-graphviz//lib/graphviz.rb#75
310
+ def node_attrs; end
311
+
312
+ # Get the number of nodes
313
+ #
314
+ # source://ruby-graphviz//lib/graphviz.rb#187
315
+ def node_count; end
316
+
317
+ # Generate the graph
318
+ #
319
+ # Options :
320
+ # * :output : Output format (GraphViz::Constants::FORMATS)
321
+ # * :file : Output file name
322
+ # * :use : Program to use (GraphViz::Constants::PROGRAMS)
323
+ # * :path : Program PATH
324
+ # * :<format> => <file> : <file> can be
325
+ # * a file name
326
+ # * nil, then the output will be printed to STDOUT
327
+ # * String, then the output will be returned as a String
328
+ # * :errors : DOT error level (default 1)
329
+ # * 0 = Error + Warning
330
+ # * 1 = Error
331
+ # * 2 = none
332
+ #
333
+ # source://ruby-graphviz//lib/graphviz.rb#447
334
+ def output(hOpts = T.unsafe(nil)); end
335
+
336
+ # source://ruby-graphviz//lib/graphviz.rb#685
337
+ def pg; end
338
+
339
+ # source://ruby-graphviz//lib/graphviz.rb#688
340
+ def pg=(x); end
341
+
342
+ # Return the root graph
343
+ #
344
+ # source://ruby-graphviz//lib/graphviz.rb#695
345
+ def root_graph; end
346
+
347
+ # Generate the graph
348
+ #
349
+ # Options :
350
+ # * :output : Output format (GraphViz::Constants::FORMATS)
351
+ # * :file : Output file name
352
+ # * :use : Program to use (GraphViz::Constants::PROGRAMS)
353
+ # * :path : Program PATH
354
+ # * :<format> => <file> : <file> can be
355
+ # * a file name
356
+ # * nil, then the output will be printed to STDOUT
357
+ # * String, then the output will be returned as a String
358
+ # * :errors : DOT error level (default 1)
359
+ # * 0 = Error + Warning
360
+ # * 1 = Error
361
+ # * 2 = none
362
+ #
363
+ # source://ruby-graphviz//lib/graphviz.rb#447
364
+ def save(hOpts = T.unsafe(nil)); end
365
+
366
+ # Return the first node found in the current graph, and it subgraphs
367
+ #
368
+ # source://ruby-graphviz//lib/graphviz.rb#146
369
+ def search_node(name); end
370
+
371
+ # source://ruby-graphviz//lib/graphviz.rb#711
372
+ def set_position(xType, xKey, xValue); end
373
+
374
+ # Create a new graph
375
+ #
376
+ # In:
377
+ # * xGraphName : Graph name
378
+ # * hOpts : Graph attributes
379
+ #
380
+ # source://ruby-graphviz//lib/graphviz.rb#269
381
+ def subgraph(xGraphName = T.unsafe(nil), hOpts = T.unsafe(nil), &block); end
382
+
383
+ # Create a new graph from the current subgraph
384
+ #
385
+ # source://ruby-graphviz//lib/graphviz.rb#424
386
+ def to_graph; end
387
+
388
+ # source://ruby-graphviz//lib/graphviz.rb#655
389
+ def to_s; end
390
+
391
+ # Return the graph type (graph digraph)
392
+ #
393
+ # source://ruby-graphviz//lib/graphviz.rb#343
394
+ def type; end
395
+
396
+ # source://ruby-graphviz//lib/graphviz.rb#346
397
+ def type=(x); end
398
+
399
+ private
400
+
401
+ # Edge between a node and a Hash
402
+ # Used by GraphViz#add
403
+ #
404
+ # source://ruby-graphviz//lib/graphviz.rb#892
405
+ def add_hash_edge(node, hash); end
406
+
407
+ class << self
408
+ # source://ruby-graphviz//lib/graphviz.rb#699
409
+ def commonGraph(o1, o2); end
410
+
411
+ # Change default options (:use, :path, :errors and :output)
412
+ #
413
+ # source://ruby-graphviz//lib/graphviz.rb#724
414
+ def default(hOpts); end
415
+
416
+ # Create a new directed graph
417
+ #
418
+ # See also GraphViz::new
419
+ #
420
+ # source://ruby-graphviz//lib/graphviz.rb#917
421
+ def digraph(xGraphName, hOpts = T.unsafe(nil), &block); end
422
+
423
+ # Escape a string to be acceptable as a node name in a graphviz input file
424
+ #
425
+ # source://ruby-graphviz//lib/graphviz.rb#960
426
+ def escape(str, opts = T.unsafe(nil)); end
427
+
428
+ # Create a random graph.
429
+ #
430
+ # source://ruby-graphviz//lib/graphviz.rb#929
431
+ def generate(num_nodes, num_edges, directed = T.unsafe(nil), weight_range = T.unsafe(nil)); end
432
+
433
+ # Create a new undirected graph
434
+ #
435
+ # See also GraphViz::new
436
+ #
437
+ # source://ruby-graphviz//lib/graphviz.rb#908
438
+ def graph(xGraphName, hOpts = T.unsafe(nil), &block); end
439
+
440
+ # source://ruby-graphviz//lib/graphviz.rb#741
441
+ def options(hOpts); end
442
+
443
+ # Create a new graph from a GraphViz File
444
+ #
445
+ # Options :
446
+ # * :output : Output format (GraphViz::Constants::FORMATS) (default : dot)
447
+ # * :file : Output file name (default : none)
448
+ # * :use : Program to use (GraphViz::Constants::PROGRAMS) (default : dot)
449
+ # * :path : Program PATH
450
+ #
451
+ # @yield [graph]
452
+ #
453
+ # source://ruby-graphviz//lib/graphviz.rb#755
454
+ def parse(xFile, hOpts = T.unsafe(nil), &block); end
455
+
456
+ # Create a new graph from a GraphViz File
457
+ #
458
+ # Options :
459
+ # * :output : Output format (GraphViz::Constants::FORMATS) (default : dot)
460
+ # * :file : Output file name (default : none)
461
+ # * :use : Program to use (GraphViz::Constants::PROGRAMS) (default : dot)
462
+ # * :path : Program PATH
463
+ #
464
+ # @yield [graph]
465
+ #
466
+ # source://ruby-graphviz//lib/graphviz.rb#769
467
+ def parse_string(str, hOpts = T.unsafe(nil), &block); end
468
+
469
+ # Create a new strict directed graph
470
+ #
471
+ # See also GraphViz::new
472
+ #
473
+ # source://ruby-graphviz//lib/graphviz.rb#924
474
+ def strict_digraph(xGraphName, hOpts = T.unsafe(nil), &block); end
475
+ end
476
+ end
477
+
478
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#21
479
+ class GraphViz::Attrs
480
+ # @return [Attrs] a new instance of Attrs
481
+ #
482
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#24
483
+ def initialize(gviz, name, attributes); end
484
+
485
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#41
486
+ def [](key); end
487
+
488
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#51
489
+ def []=(key, value); end
490
+
491
+ # Returns the value of attribute data.
492
+ #
493
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#22
494
+ def data; end
495
+
496
+ # Sets the attribute data
497
+ #
498
+ # @param value the value to set the attribute data to.
499
+ #
500
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#22
501
+ def data=(_arg0); end
502
+
503
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#31
504
+ def each; end
505
+
506
+ # source://ruby-graphviz//lib/graphviz/attrs.rb#37
507
+ def to_h; end
508
+ end
509
+
510
+ # source://ruby-graphviz//lib/graphviz/constants.rb#43
511
+ module GraphViz::Constants
512
+ class << self
513
+ # source://ruby-graphviz//lib/graphviz/constants.rb#111
514
+ def getAttrsFor(x); end
515
+ end
516
+ end
517
+
518
+ # Const: Edge attributes
519
+ #
520
+ # source://ruby-graphviz//lib/graphviz/constants.rb#301
521
+ GraphViz::Constants::EDGESATTRS = T.let(T.unsafe(nil), Hash)
522
+
523
+ # Const: Output formats
524
+ #
525
+ # source://ruby-graphviz//lib/graphviz/constants.rb#47
526
+ GraphViz::Constants::FORMATS = T.let(T.unsafe(nil), Array)
527
+
528
+ # E, N, G, S and C represent edges, nodes, the root graph, subgraphs and cluster subgraphs, respectively
529
+ #
530
+ # source://ruby-graphviz//lib/graphviz/constants.rb#120
531
+ GraphViz::Constants::GENCS_ATTRS = T.let(T.unsafe(nil), Hash)
532
+
533
+ # Const: Graph attributes
534
+ #
535
+ # source://ruby-graphviz//lib/graphviz/constants.rb#295
536
+ GraphViz::Constants::GRAPHSATTRS = T.let(T.unsafe(nil), Hash)
537
+
538
+ # Const: graphs type
539
+ #
540
+ # source://ruby-graphviz//lib/graphviz/constants.rb#105
541
+ GraphViz::Constants::GRAPHTYPE = T.let(T.unsafe(nil), Array)
542
+
543
+ # Const: Node attributes
544
+ #
545
+ # source://ruby-graphviz//lib/graphviz/constants.rb#298
546
+ GraphViz::Constants::NODESATTRS = T.let(T.unsafe(nil), Hash)
547
+
548
+ # Const: programs
549
+ #
550
+ # source://ruby-graphviz//lib/graphviz/constants.rb#95
551
+ GraphViz::Constants::PROGRAMS = T.let(T.unsafe(nil), Array)
552
+
553
+ # source://ruby-graphviz//lib/graphviz/constants.rb#44
554
+ GraphViz::Constants::RGV_VERSION = T.let(T.unsafe(nil), String)
555
+
556
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#48
557
+ class GraphViz::DOTScript
558
+ extend ::Forwardable
559
+
560
+ # @return [DOTScript] a new instance of DOTScript
561
+ #
562
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#53
563
+ def initialize; end
564
+
565
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#57
566
+ def <<(line); end
567
+
568
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#74
569
+ def add_type(type, data); end
570
+
571
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#57
572
+ def append(line); end
573
+
574
+ # source://forwardable/1.3.3/forwardable.rb#231
575
+ def end_with?(*args, **_arg1, &block); end
576
+
577
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#70
578
+ def make_subgraph(name); end
579
+
580
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#64
581
+ def prepend(line); end
582
+
583
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#93
584
+ def to_s; end
585
+
586
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#93
587
+ def to_str; end
588
+
589
+ private
590
+
591
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#104
592
+ def append_statement(statement); end
593
+
594
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#100
595
+ def assure_ends_with(str, ending = T.unsafe(nil)); end
596
+ end
597
+
598
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#4
599
+ class GraphViz::DOTScriptData
600
+ # @return [DOTScriptData] a new instance of DOTScriptData
601
+ #
602
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#6
603
+ def initialize(type = T.unsafe(nil)); end
604
+
605
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#12
606
+ def <<(data); end
607
+
608
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#17
609
+ def add_attribute(name, value); end
610
+
611
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#12
612
+ def append(data); end
613
+
614
+ # @return [Boolean]
615
+ #
616
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#32
617
+ def empty?; end
618
+
619
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#22
620
+ def to_s; end
621
+
622
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#22
623
+ def to_str; end
624
+
625
+ # Returns the value of attribute type.
626
+ #
627
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#5
628
+ def type; end
629
+
630
+ # Sets the attribute type
631
+ #
632
+ # @param value the value to set the attribute type to.
633
+ #
634
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#5
635
+ def type=(_arg0); end
636
+
637
+ private
638
+
639
+ # source://ruby-graphviz//lib/graphviz/dot_script.rb#38
640
+ def determine_separator; end
641
+ end
642
+
643
+ # source://ruby-graphviz//lib/graphviz/edge.rb#21
644
+ class GraphViz::Edge
645
+ include ::GraphViz::Constants
646
+
647
+ # Create a new edge
648
+ #
649
+ # In:
650
+ # * vNodeOne : First node (can be a GraphViz::Node or a node ID)
651
+ # * vNodeTwo : Second node (can be a GraphViz::Node or a node ID)
652
+ # * parent_graph : Graph
653
+ #
654
+ # @return [Edge] a new instance of Edge
655
+ #
656
+ # source://ruby-graphviz//lib/graphviz/edge.rb#30
657
+ def initialize(vNodeOne, vNodeTwo, parent_graph); end
658
+
659
+ # source://ruby-graphviz//lib/graphviz/edge.rb#117
660
+ def -(node); end
661
+
662
+ # source://ruby-graphviz//lib/graphviz/edge.rb#117
663
+ def <<(node); end
664
+
665
+ # source://ruby-graphviz//lib/graphviz/edge.rb#117
666
+ def >(node); end
667
+
668
+ # source://ruby-graphviz//lib/graphviz/edge.rb#117
669
+ def >>(node); end
670
+
671
+ # Set values for edge attributes or
672
+ # get the value of the given edge attribute +attribute_name+
673
+ #
674
+ # source://ruby-graphviz//lib/graphviz/edge.rb#82
675
+ def [](attribute_name); end
676
+
677
+ # Set value +attribute_value+ to the edge attribute +attribute_name+
678
+ #
679
+ # source://ruby-graphviz//lib/graphviz/edge.rb#75
680
+ def []=(attribute_name, attribute_value); end
681
+
682
+ # source://ruby-graphviz//lib/graphviz/edge.rb#112
683
+ def each_attribut(global = T.unsafe(nil), &b); end
684
+
685
+ # Calls block once for each attribute of the edge, passing the name and value to the
686
+ # block as a two-element array.
687
+ #
688
+ # If global is set to false, the block does not receive the attributes set globally
689
+ #
690
+ # source://ruby-graphviz//lib/graphviz/edge.rb#103
691
+ def each_attribute(global = T.unsafe(nil), &b); end
692
+
693
+ # Return the node two as string (so with port if any)
694
+ #
695
+ # source://ruby-graphviz//lib/graphviz/edge.rb#57
696
+ def head_node(with_port = T.unsafe(nil), escaped = T.unsafe(nil)); end
697
+
698
+ # Return the index of the edge
699
+ #
700
+ # source://ruby-graphviz//lib/graphviz/edge.rb#67
701
+ def index; end
702
+
703
+ # source://ruby-graphviz//lib/graphviz/edge.rb#70
704
+ def index=(i); end
705
+
706
+ # Add edge options
707
+ # use edge.<option>=<value> or edge.<option>( <value> )
708
+ #
709
+ # source://ruby-graphviz//lib/graphviz/edge.rb#152
710
+ def method_missing(idName, *args, &block); end
711
+
712
+ # Return the node one as string (so with port if any)
713
+ #
714
+ # source://ruby-graphviz//lib/graphviz/edge.rb#47
715
+ def node_one(with_port = T.unsafe(nil), escaped = T.unsafe(nil)); end
716
+
717
+ # Return the node two as string (so with port if any)
718
+ #
719
+ # source://ruby-graphviz//lib/graphviz/edge.rb#57
720
+ def node_two(with_port = T.unsafe(nil), escaped = T.unsafe(nil)); end
721
+
722
+ # source://ruby-graphviz//lib/graphviz/edge.rb#159
723
+ def output(oGraphType); end
724
+
725
+ # source://ruby-graphviz//lib/graphviz/edge.rb#133
726
+ def pg; end
727
+
728
+ # Return the root graph
729
+ #
730
+ # source://ruby-graphviz//lib/graphviz/edge.rb#129
731
+ def root_graph; end
732
+
733
+ # Set edge attributes
734
+ #
735
+ # Example :
736
+ # e = graph.add_edges( ... )
737
+ # ...
738
+ # e.set { |_e|
739
+ # _e.color = "blue"
740
+ # _e.fontcolor = "red"
741
+ # }
742
+ #
743
+ # @yield [_self]
744
+ # @yieldparam _self [GraphViz::Edge] the object that the method was called on
745
+ #
746
+ # source://ruby-graphviz//lib/graphviz/edge.rb#146
747
+ def set(&b); end
748
+
749
+ # Return the node one as string (so with port if any)
750
+ #
751
+ # source://ruby-graphviz//lib/graphviz/edge.rb#47
752
+ def tail_node(with_port = T.unsafe(nil), escaped = T.unsafe(nil)); end
753
+
754
+ private
755
+
756
+ # source://ruby-graphviz//lib/graphviz/edge.rb#186
757
+ def getNodeNameAndPort(node); end
758
+ end
759
+
760
+ # source://ruby-graphviz//lib/graphviz/elements.rb#2
761
+ class GraphViz::Elements
762
+ # @return [Elements] a new instance of Elements
763
+ #
764
+ # source://ruby-graphviz//lib/graphviz/elements.rb#3
765
+ def initialize; end
766
+
767
+ # source://ruby-graphviz//lib/graphviz/elements.rb#31
768
+ def [](index, type = T.unsafe(nil)); end
769
+
770
+ # source://ruby-graphviz//lib/graphviz/elements.rb#17
771
+ def each(&b); end
772
+
773
+ # source://ruby-graphviz//lib/graphviz/elements.rb#8
774
+ def push(obj); end
775
+
776
+ # source://ruby-graphviz//lib/graphviz/elements.rb#23
777
+ def size_of(type); end
778
+ end
779
+
780
+ # source://ruby-graphviz//lib/graphviz/ext.rb#4
781
+ class GraphViz::Ext
782
+ class << self
783
+ # source://ruby-graphviz//lib/graphviz/ext.rb#5
784
+ def find(ext = T.unsafe(nil)); end
785
+ end
786
+ end
787
+
788
+ # source://ruby-graphviz//lib/graphviz/node.rb#21
789
+ class GraphViz::Node
790
+ include ::GraphViz::Constants
791
+
792
+ # Create a new node
793
+ #
794
+ # * node_id : ID of the node
795
+ # * parent_graph : Graph
796
+ #
797
+ # @return [Node] a new instance of Node
798
+ #
799
+ # source://ruby-graphviz//lib/graphviz/node.rb#33
800
+ def initialize(node_id, parent_graph); end
801
+
802
+ # Create an edge between the current node and the node +node+
803
+ #
804
+ # source://ruby-graphviz//lib/graphviz/node.rb#97
805
+ def -(node); end
806
+
807
+ # Create an edge between the current node and the node +node+
808
+ #
809
+ # source://ruby-graphviz//lib/graphviz/node.rb#97
810
+ def <<(node); end
811
+
812
+ # Create an edge between the current node and the node +node+
813
+ #
814
+ # source://ruby-graphviz//lib/graphviz/node.rb#97
815
+ def >(node); end
816
+
817
+ # Create an edge between the current node and the node +node+
818
+ #
819
+ # source://ruby-graphviz//lib/graphviz/node.rb#97
820
+ def >>(node); end
821
+
822
+ # Get the value of the node attribute +attribute_name+
823
+ #
824
+ # source://ruby-graphviz//lib/graphviz/node.rb#67
825
+ def [](attribute_name); end
826
+
827
+ # Set value +attribute_value+ to the node attribute +attribute_name+
828
+ #
829
+ # source://ruby-graphviz//lib/graphviz/node.rb#61
830
+ def []=(attribute_name, attribute_value); end
831
+
832
+ # source://ruby-graphviz//lib/graphviz/node.rb#91
833
+ def each_attribut(global = T.unsafe(nil), &b); end
834
+
835
+ # Calls block once for each attribute of the node, passing the name and value to the
836
+ # block as a two-element array.
837
+ #
838
+ # If global is set to false, the block does not receive the attributes set globally
839
+ #
840
+ # source://ruby-graphviz//lib/graphviz/node.rb#82
841
+ def each_attribute(global = T.unsafe(nil), &b); end
842
+
843
+ # Get the node ID
844
+ #
845
+ # source://ruby-graphviz//lib/graphviz/node.rb#43
846
+ def id; end
847
+
848
+ # List of nodes that are incident to the given node (in a directed graph neighbors == incidents)
849
+ #
850
+ # source://ruby-graphviz//lib/graphviz/node.rb#27
851
+ def incidents; end
852
+
853
+ # Return the node index
854
+ #
855
+ # source://ruby-graphviz//lib/graphviz/node.rb#48
856
+ def index; end
857
+
858
+ # source://ruby-graphviz//lib/graphviz/node.rb#51
859
+ def index=(i); end
860
+
861
+ # Add node options
862
+ # use node.<option>=<value> or node.<option>( <value> )
863
+ #
864
+ # source://ruby-graphviz//lib/graphviz/node.rb#126
865
+ def method_missing(idName, *args, &block); end
866
+
867
+ # List of nodes that are directly accessible from given node (in a directed graph neighbors == incidents)
868
+ #
869
+ # source://ruby-graphviz//lib/graphviz/node.rb#25
870
+ def neighbors; end
871
+
872
+ # source://ruby-graphviz//lib/graphviz/node.rb#136
873
+ def output; end
874
+
875
+ # source://ruby-graphviz//lib/graphviz/node.rb#132
876
+ def pg; end
877
+
878
+ # Return the root graph
879
+ #
880
+ # source://ruby-graphviz//lib/graphviz/node.rb#56
881
+ def root_graph; end
882
+
883
+ # Set node attributes
884
+ #
885
+ # Example :
886
+ # n = graph.add_nodes( ... )
887
+ # ...
888
+ # n.set { |_n|
889
+ # _n.color = "blue"
890
+ # _n.fontcolor = "red"
891
+ # }
892
+ #
893
+ # @yield [_self]
894
+ # @yieldparam _self [GraphViz::Node] the object that the method was called on
895
+ #
896
+ # source://ruby-graphviz//lib/graphviz/node.rb#120
897
+ def set(&b); end
898
+ end
899
+
900
+ # source://ruby-graphviz//lib/graphviz/types.rb#2
901
+ class GraphViz::Types; end
902
+
903
+ # source://ruby-graphviz//lib/graphviz/types/arrow_type.rb#15
904
+ class GraphViz::Types::ArrowType < ::GraphViz::Types::Common
905
+ # source://ruby-graphviz//lib/graphviz/types/arrow_type.rb#16
906
+ def check(data); end
907
+
908
+ # source://ruby-graphviz//lib/graphviz/types/arrow_type.rb#20
909
+ def output; end
910
+
911
+ # source://ruby-graphviz//lib/graphviz/types/arrow_type.rb#20
912
+ def to_gv; end
913
+
914
+ # source://ruby-graphviz//lib/graphviz/types/arrow_type.rb#27
915
+ def to_ruby; end
916
+
917
+ # source://ruby-graphviz//lib/graphviz/types/arrow_type.rb#20
918
+ def to_s; end
919
+ end
920
+
921
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#8
922
+ class GraphViz::Types::Color < ::GraphViz::Types::Common
923
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#12
924
+ def check(data); end
925
+
926
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#46
927
+ def output; end
928
+
929
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#46
930
+ def to_gv; end
931
+
932
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#53
933
+ def to_ruby; end
934
+
935
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#46
936
+ def to_s; end
937
+ end
938
+
939
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#9
940
+ GraphViz::Types::Color::HEX_FOR_COLOR = T.let(T.unsafe(nil), Regexp)
941
+
942
+ # source://ruby-graphviz//lib/graphviz/types/color.rb#10
943
+ GraphViz::Types::Color::RGBA = T.let(T.unsafe(nil), Regexp)
944
+
945
+ # source://ruby-graphviz//lib/graphviz/types/color_list.rb#3
946
+ class GraphViz::Types::ColorList < ::GraphViz::Types::Common
947
+ # source://ruby-graphviz//lib/graphviz/types/color_list.rb#4
948
+ def check(data); end
949
+
950
+ # source://ruby-graphviz//lib/graphviz/types/color_list.rb#12
951
+ def output; end
952
+
953
+ # source://ruby-graphviz//lib/graphviz/types/color_list.rb#12
954
+ def to_gv; end
955
+
956
+ # source://ruby-graphviz//lib/graphviz/types/color_list.rb#19
957
+ def to_ruby; end
958
+
959
+ # source://ruby-graphviz//lib/graphviz/types/color_list.rb#12
960
+ def to_s; end
961
+ end
962
+
963
+ # source://ruby-graphviz//lib/graphviz/types.rb#3
964
+ class GraphViz::Types::Common
965
+ # @return [Common] a new instance of Common
966
+ #
967
+ # source://ruby-graphviz//lib/graphviz/types.rb#4
968
+ def initialize(data); end
969
+
970
+ # source://ruby-graphviz//lib/graphviz/types.rb#8
971
+ def output; end
972
+
973
+ # source://ruby-graphviz//lib/graphviz/types.rb#12
974
+ def source; end
975
+ end
976
+
977
+ # source://ruby-graphviz//lib/graphviz/types/esc_string.rb#3
978
+ class GraphViz::Types::EscString < ::GraphViz::Types::Common
979
+ # source://ruby-graphviz//lib/graphviz/types/esc_string.rb#4
980
+ def check(data); end
981
+
982
+ # source://ruby-graphviz//lib/graphviz/types/esc_string.rb#8
983
+ def output; end
984
+
985
+ # source://ruby-graphviz//lib/graphviz/types/esc_string.rb#8
986
+ def to_gv; end
987
+
988
+ # source://ruby-graphviz//lib/graphviz/types/esc_string.rb#15
989
+ def to_ruby; end
990
+
991
+ # source://ruby-graphviz//lib/graphviz/types/esc_string.rb#8
992
+ def to_s; end
993
+ end
994
+
995
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#19
996
+ class GraphViz::Types::GvBool < ::GraphViz::Types::Common
997
+ # @raise [BoolException]
998
+ #
999
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#23
1000
+ def check(data); end
1001
+
1002
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#37
1003
+ def output; end
1004
+
1005
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#37
1006
+ def to_gv; end
1007
+
1008
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#44
1009
+ def to_ruby; end
1010
+
1011
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#37
1012
+ def to_s; end
1013
+ end
1014
+
1015
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#21
1016
+ GraphViz::Types::GvBool::BOOL_FALSE = T.let(T.unsafe(nil), Array)
1017
+
1018
+ # source://ruby-graphviz//lib/graphviz/types/gv_bool.rb#20
1019
+ GraphViz::Types::GvBool::BOOL_TRUE = T.let(T.unsafe(nil), Array)
1020
+
1021
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#6
1022
+ class GraphViz::Types::GvDouble < ::GraphViz::Types::Common
1023
+ # @raise [DoubleException]
1024
+ #
1025
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#9
1026
+ def check(data); end
1027
+
1028
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#19
1029
+ def output; end
1030
+
1031
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#23
1032
+ def to_f; end
1033
+
1034
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#19
1035
+ def to_gv; end
1036
+
1037
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#23
1038
+ def to_ruby; end
1039
+
1040
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#19
1041
+ def to_s; end
1042
+ end
1043
+
1044
+ # source://ruby-graphviz//lib/graphviz/types/gv_double.rb#7
1045
+ GraphViz::Types::GvDouble::FLOAT_MASK = T.let(T.unsafe(nil), Regexp)
1046
+
1047
+ # source://ruby-graphviz//lib/graphviz/types/html_string.rb#4
1048
+ class GraphViz::Types::HtmlString < ::GraphViz::Types::Common
1049
+ # source://ruby-graphviz//lib/graphviz/types/html_string.rb#5
1050
+ def check(data); end
1051
+
1052
+ # source://ruby-graphviz//lib/graphviz/types/html_string.rb#9
1053
+ def output; end
1054
+
1055
+ # source://ruby-graphviz//lib/graphviz/types/html_string.rb#9
1056
+ def to_gv; end
1057
+
1058
+ # source://ruby-graphviz//lib/graphviz/types/html_string.rb#9
1059
+ def to_ruby; end
1060
+
1061
+ # source://ruby-graphviz//lib/graphviz/types/html_string.rb#9
1062
+ def to_s; end
1063
+ end
1064
+
1065
+ # source://ruby-graphviz//lib/graphviz/types/lbl_string.rb#5
1066
+ class GraphViz::Types::LblString < ::GraphViz::Types::Common
1067
+ # source://ruby-graphviz//lib/graphviz/types/lbl_string.rb#6
1068
+ def check(data); end
1069
+
1070
+ # source://ruby-graphviz//lib/graphviz/types/lbl_string.rb#10
1071
+ def output; end
1072
+
1073
+ # source://ruby-graphviz//lib/graphviz/types/lbl_string.rb#10
1074
+ def to_gv; end
1075
+
1076
+ # source://ruby-graphviz//lib/graphviz/types/lbl_string.rb#10
1077
+ def to_ruby; end
1078
+
1079
+ # source://ruby-graphviz//lib/graphviz/types/lbl_string.rb#10
1080
+ def to_s; end
1081
+ end
1082
+
1083
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#6
1084
+ class GraphViz::Types::Rect < ::GraphViz::Types::Common
1085
+ # @raise [RectException]
1086
+ #
1087
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#10
1088
+ def check(data); end
1089
+
1090
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#23
1091
+ def output; end
1092
+
1093
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#23
1094
+ def to_gv; end
1095
+
1096
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#30
1097
+ def to_ruby; end
1098
+
1099
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#23
1100
+ def to_s; end
1101
+ end
1102
+
1103
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#7
1104
+ GraphViz::Types::Rect::FLOAT_MASK = T.let(T.unsafe(nil), Regexp)
1105
+
1106
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#8
1107
+ GraphViz::Types::Rect::RECT_FINAL_MASK = T.let(T.unsafe(nil), Regexp)
1108
+
1109
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#18
1110
+ class GraphViz::Types::SplineType < ::GraphViz::Types::Common
1111
+ # @raise [SplineTypeException]
1112
+ #
1113
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#29
1114
+ def check(data); end
1115
+
1116
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#58
1117
+ def endp; end
1118
+
1119
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#43
1120
+ def output; end
1121
+
1122
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#50
1123
+ def point; end
1124
+
1125
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#61
1126
+ def startp; end
1127
+
1128
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#43
1129
+ def to_gv; end
1130
+
1131
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#43
1132
+ def to_s; end
1133
+
1134
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#64
1135
+ def triples; end
1136
+
1137
+ private
1138
+
1139
+ # @return [Boolean]
1140
+ #
1141
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#68
1142
+ def point?; end
1143
+
1144
+ # @return [Boolean]
1145
+ #
1146
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#72
1147
+ def splite_type?; end
1148
+ end
1149
+
1150
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#20
1151
+ GraphViz::Types::SplineType::ENDP_MASK = T.let(T.unsafe(nil), Regexp)
1152
+
1153
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#27
1154
+ GraphViz::Types::SplineType::FINAL_POINT_MASK = T.let(T.unsafe(nil), Regexp)
1155
+
1156
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#26
1157
+ GraphViz::Types::SplineType::FINAL_SPLINE_MASK = T.let(T.unsafe(nil), Regexp)
1158
+
1159
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#19
1160
+ GraphViz::Types::SplineType::FLOAT_MASK = T.let(T.unsafe(nil), Regexp)
1161
+
1162
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#22
1163
+ GraphViz::Types::SplineType::POINT_MASK = T.let(T.unsafe(nil), Regexp)
1164
+
1165
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#24
1166
+ GraphViz::Types::SplineType::SPLINE_MASK = T.let(T.unsafe(nil), Regexp)
1167
+
1168
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#21
1169
+ GraphViz::Types::SplineType::STARTP_MASK = T.let(T.unsafe(nil), Regexp)
1170
+
1171
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#23
1172
+ GraphViz::Types::SplineType::TRIPLE_MASK = T.let(T.unsafe(nil), Regexp)
1173
+
1174
+ # source://ruby-graphviz//lib/graphviz/utils.rb#4
1175
+ module GraphViz::Utils
1176
+ # source://ruby-graphviz//lib/graphviz/utils.rb#20
1177
+ def find_executable(bin, custom_paths); end
1178
+
1179
+ # source://ruby-graphviz//lib/graphviz/utils.rb#37
1180
+ def output_and_errors_from_command(cmd); end
1181
+
1182
+ # source://ruby-graphviz//lib/graphviz/utils.rb#56
1183
+ def output_from_command(cmd); end
1184
+ end
1185
+
1186
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#5
1187
+ class GraphViz::Utils::Colors
1188
+ # @return [Colors] a new instance of Colors
1189
+ #
1190
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#12
1191
+ def initialize; end
1192
+
1193
+ # Returns the value of attribute a.
1194
+ #
1195
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#9
1196
+ def a; end
1197
+
1198
+ # Returns the value of attribute b.
1199
+ #
1200
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#9
1201
+ def b; end
1202
+
1203
+ # Returns the value of attribute g.
1204
+ #
1205
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#9
1206
+ def g; end
1207
+
1208
+ # Returns the value of attribute h.
1209
+ #
1210
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#10
1211
+ def h; end
1212
+
1213
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#55
1214
+ def hsv(h, s, v); end
1215
+
1216
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#93
1217
+ def hsv_string(s = T.unsafe(nil)); end
1218
+
1219
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#105
1220
+ def hsv_to_rgb(h, s, v); end
1221
+
1222
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#69
1223
+ def name(c = T.unsafe(nil)); end
1224
+
1225
+ # Returns the value of attribute r.
1226
+ #
1227
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#9
1228
+ def r; end
1229
+
1230
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#16
1231
+ def rgb(r, g, b, a = T.unsafe(nil)); end
1232
+
1233
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#101
1234
+ def rgb_to_hsv(r, g, b); end
1235
+
1236
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#85
1237
+ def rgba_string(c = T.unsafe(nil)); end
1238
+
1239
+ # Returns the value of attribute s.
1240
+ #
1241
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#10
1242
+ def s; end
1243
+
1244
+ # Returns the value of attribute v.
1245
+ #
1246
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#10
1247
+ def v; end
1248
+
1249
+ class << self
1250
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#116
1251
+ def hsv(h, s, v); end
1252
+
1253
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#162
1254
+ def hsv_to_rgb(h, s, v); end
1255
+
1256
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#122
1257
+ def name(c); end
1258
+
1259
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#110
1260
+ def rgb(r, g, b, a = T.unsafe(nil)); end
1261
+
1262
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#128
1263
+ def rgb_to_hsv(r, g, b); end
1264
+ end
1265
+ end
1266
+
1267
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#211
1268
+ GraphViz::Utils::Colors::COLORS = T.let(T.unsafe(nil), Hash)
1269
+
1270
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#6
1271
+ GraphViz::Utils::Colors::HEX_FOR_COLOR = T.let(T.unsafe(nil), Regexp)
1272
+
1273
+ # source://ruby-graphviz//lib/graphviz/utils/colors.rb#7
1274
+ GraphViz::Utils::Colors::RGBA = T.let(T.unsafe(nil), Regexp)
1275
+
1276
+ # From : http://www.geekmade.co.uk/2008/09/ruby-tip-normalizing-hash-keys-as-symbols/
1277
+ #
1278
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#27
1279
+ class Hash
1280
+ include ::Enumerable
1281
+
1282
+ # x = {
1283
+ # :none => String,
1284
+ # :png => "file.png",
1285
+ # :svg => "file.svg"
1286
+ # }
1287
+ #
1288
+ # x.each_except( :key => [:none], :value => [/\.png$/] ) do |k, v|
1289
+ # puts "#{k} -> #{v}"
1290
+ # end
1291
+ #
1292
+ # => svg -> file.svg
1293
+ #
1294
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#46
1295
+ def each_except(e, &b); end
1296
+
1297
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#28
1298
+ def symbolize_keys; end
1299
+ end
1300
+
1301
+ # source://ruby-graphviz//lib/graphviz.rb#20
1302
+ IS_CYGWIN = T.let(T.unsafe(nil), FalseClass)
1303
+
1304
+ # source://ruby-graphviz//lib/graphviz.rb#19
1305
+ IS_JRUBY = T.let(T.unsafe(nil), FalseClass)
1306
+
1307
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#16
1308
+ class Object < ::BasicObject
1309
+ include ::Kernel
1310
+ include ::PP::ObjectMixin
1311
+
1312
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#17
1313
+ def to_ruby; end
1314
+ end
1315
+
1316
+ # source://ruby-graphviz//lib/graphviz/types/rect.rb#1
1317
+ class RectException < ::RuntimeError; end
1318
+
1319
+ # source://ruby-graphviz//lib/graphviz/types/spline_type.rb#1
1320
+ class SplineTypeException < ::RuntimeError; end
1321
+
1322
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#1
1323
+ class String
1324
+ include ::Comparable
1325
+
1326
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#11
1327
+ def convert_base(from, to); end
1328
+
1329
+ class << self
1330
+ # source://ruby-graphviz//lib/graphviz/core_ext.rb#2
1331
+ def random(size); end
1332
+ end
1333
+ end