File: convert.rst

package info (click to toggle)
python-networkx 1.7~rc1-3
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 4,128 kB
  • sloc: python: 44,557; makefile: 135
file content (49 lines) | stat: -rw-r--r-- 754 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
*****************************************
Converting to and from other data formats
*****************************************
.. currentmodule:: networkx

To NetworkX Graph
-----------------
.. automodule:: networkx.convert

.. autosummary::
   :toctree: generated/

   to_networkx_graph


Dictionaries
------------
.. autosummary::
   :toctree: generated/

   to_dict_of_dicts
   from_dict_of_dicts

Lists
-----
.. autosummary::
   :toctree: generated/

   to_dict_of_lists
   from_dict_of_lists
   to_edgelist
   from_edgelist

Numpy
-----
.. autosummary::
   :toctree: generated/

   to_numpy_matrix
   to_numpy_recarray
   from_numpy_matrix

Scipy
-----
.. autosummary::
   :toctree: generated/

   to_scipy_sparse_matrix
   from_scipy_sparse_matrix