Module: Plexus::DirectedPseudoGraphBuilder

Includes:
DirectedGraphBuilder
Included in:
DirectedMultiGraphBuilder, DirectedPseudoGraph
Defined in:
lib/plexus/directed_graph.rb

Overview

This is a Digraph that allows for parallel edges, but does not allow loops.

Defined Under Namespace

Modules: ClassMethods

Instance Method Summary collapse

Methods included from GraphBuilder

#+, #-, #<<, #add_edge, #add_edges, #add_edges!, #add_vertex, #add_vertices, #add_vertices!, #adjacent, #adjacent?, #closed_pth_neighborhood, #complement, #connected?, #degree, #each, #edge?, #empty?, #eql?, #from_array, #in_degree, #include?, #induced_subgraph, #inspect, #max_degree, #max_in_degree, #max_out_degree, #merge, #min_degree, #min_in_degree, #min_out_degree, #neighborhood, #num_edges, #open_pth_neighborhood, #out_degree, #regular?, #remove_edge, #remove_edges, #remove_edges!, #remove_vertex, #remove_vertices, #remove_vertices!, #set_neighborhood, #size, #vertex?

Methods included from Dot

#dotty, #to_dot, #to_dot_graph, #write_to_graphic_file

Methods included from Labels

#[], #[]=, #clear_all_labels, #delete_label, #edge_label, #edge_label_delete, #edge_label_set, #vertex_label, #vertex_label_delete, #vertex_label_set

Instance Method Details

#initialize(*params) ⇒ Object



54
55
56
57
58
# File 'lib/plexus/directed_graph.rb', line 54

def initialize(*params)
  args = (params.pop if params.last.kind_of? Hash) || {}
  args[:parallel_edges] = true
  super *(params << args)
end