<commit_before>Network API
-----------

API changes: migration notes from version 3.0 to 4.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting on version 4.0, calls to ``init_pois`` are no longer necessary due to an improvement in the
C++ backend. From that version on, the ``max_distance`` and the ``max_pois`` parameters are directly
specified by category in the :py:meth:`pandana.network.Network.set_pois` call.



.. automodule:: pandana.network
   :members:
<commit_msg>Update network.rst<commit_after>Network API
-----------

API changes: migration notes from version 3.0 to 4.0
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Starting with version 4.0, calls to ``init_pois`` are no longer necessary due to an improvement in the
C++ backend. From that version on, the ``max_distance`` and the ``max_pois`` parameters are directly
specified by category in the :py:meth:`pandana.network.Network.set_pois` call.

The ``reserve_num_graphs`` call is also no longer required.  Pandana Network objects can now be created and destroyed on-the-fly and no initialization need be done in advance.

.. automodule:: pandana.network
   :members:

{'fraction_non_alphanumeric': 0.18566493955094993, 'fraction_numerical': 0.010362694300518135, 'mean_word_length': 4.70935960591133, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1406786', 'n_tokens_mistral': 329, 'n_tokens_neox': 307, 'n_words': 131}