Class: GV::SubGraph

Inherits:
BaseGraph show all
Defined in:
lib/gv.rb

Overview

Represents a sub-graph

Instance Attribute Summary

Attributes inherited from Component

#graph

Instance Method Summary collapse

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