Method: NetworkX::Graph#directed?

Defined in:
lib/networkx/graph.rb

#directed?Boolean

Returns:

  • (Boolean)


444
445
446
# File 'lib/networkx/graph.rb', line 444

def directed?
  ['NetworkX::DiGraph', 'NetworkX::MultiDiGraph'].include?(self.class.name)
end