#

Note

This documents the development version of NetworkX. Documentation for the current release can be found here.

#

networkx.utils.misc.make_list_of_ints

make_list_of_ints(sequence)[source]

Return list of ints from sequence of integral numbers.

All elements of the sequence must satisfy int(element) == element or a ValueError is raised. Sequence is iterated through once.

If sequence is a list, the non-int values are replaced with ints. So, no new list is created