Utils
======

>>> from networkx.utils import *

is_string_like
--------------
>>> is_string_like("aaaa")
True
>>> is_string_like(None)
False
>>> is_string_like(123)
False

iterable
--------
>>> iterable(10)
False
>>> iterable(None)
False
>>> iterable([1,2,3])
True
>>> iterable((1,2,3))
True
>>> iterable({1:"A",2:"X"})
True
>>> iterable("ABC")
True
>>> from networkx import *
>>> K=complete_graph(10)
>>> iterable(K)
True
>>> iterable(K.nodes_iter())
True
>>> iterable(K.edges_iter())
True

is_list_of_ints 
---------------
>>> is_list_of_ints([1,2,3,42])
True
>>> is_list_of_ints([1,2,3,"kermit"])
False



Random Number Distributions
---------------------------

>>> z=uniform_sequence(20)
>>> z=powerlaw_sequence(20,exponent=2.5)
>>> z=pareto_sequence(20,exponent=1.5)
>>> z=discrete_sequence(20,distribution=[0,0,0,0,1,1,1,1,2,2,3])

