Class: GV::SubGraph
Overview
Represents a sub-graph
Instance Attribute Summary
Attributes inherited from Component
Instance Method Summary collapse
-
#initialize(graph, name) ⇒ SubGraph
constructor
A new instance of SubGraph.
Methods inherited from BaseGraph
#directed?, #edge, #node, #strict?, #sub_graph
Methods inherited from Component
#==, #[], #[]=, #hash, #html, #name
Constructor Details
#initialize(graph, name) ⇒ SubGraph
214 215 216 217 |
# File 'lib/gv.rb', line 214 def initialize(graph, name) @graph = graph @ptr = Libcgraph.agsubg(graph.ptr, name, 1) end |