Skip to content

Instantly share code, notes, and snippets.

@NaoY-2501
Last active February 24, 2018 05:42
Show Gist options
  • Select an option

  • Save NaoY-2501/a15f9cd690c26d96c1a113d8b7ec260b to your computer and use it in GitHub Desktop.

Select an option

Save NaoY-2501/a15f9cd690c26d96c1a113d8b7ec260b to your computer and use it in GitHub Desktop.
note-NetworkX.md

NetworkX 1.11 -> 2.0

We have made some major changes to the methods in the Multi/Di/Graph classes.

  • マルチグラフ・有向グラフクラスのメソッドが修正

With the release of NetworkX 2.0 we are moving to a view/iterator reporting API. We have moved many methods from reporting lists or dicts to iterating over the information. Most of the changes in this regard are in the base classes. Methods that used to return containers now return views (inspired from dictionary views in Python) and methods that returned iterators have been removed.

  • view/iteratorを返すAPIに関する変更

  • 多くの変更は基本クラスにある

  • containerからviewsを返すようになった (Pythonの辞書ビューをインスパイアした)

  • イテレータを返すメソッドは削除された

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment