File: classes.multigraph.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 (87 lines) | stat: -rw-r--r-- 1,841 bytes parent folder | download | duplicates (3)
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
.. _multigraph:

=================================================================
MultiGraph - Undirected graphs with self loops and parallel edges
=================================================================

Overview
========
.. currentmodule:: networkx
.. autofunction:: MultiGraph

Adding and removing nodes and edges
===================================

.. autosummary::
   :toctree: generated/

   MultiGraph.__init__
   MultiGraph.add_node
   MultiGraph.add_nodes_from
   MultiGraph.remove_node
   MultiGraph.remove_nodes_from
   MultiGraph.add_edge
   MultiGraph.add_edges_from
   MultiGraph.add_weighted_edges_from
   MultiGraph.remove_edge
   MultiGraph.remove_edges_from
   MultiGraph.add_star
   MultiGraph.add_path
   MultiGraph.add_cycle
   MultiGraph.clear



Iterating over nodes and edges
==============================
.. autosummary::
   :toctree: generated/

   MultiGraph.nodes
   MultiGraph.nodes_iter
   MultiGraph.__iter__
   MultiGraph.edges
   MultiGraph.edges_iter
   MultiGraph.get_edge_data
   MultiGraph.neighbors
   MultiGraph.neighbors_iter
   MultiGraph.__getitem__
   MultiGraph.adjacency_list
   MultiGraph.adjacency_iter
   MultiGraph.nbunch_iter



Information about graph structure
=================================
.. autosummary::
   :toctree: generated/

   MultiGraph.has_node
   MultiGraph.__contains__
   MultiGraph.has_edge
   MultiGraph.order
   MultiGraph.number_of_nodes
   MultiGraph.__len__
   MultiGraph.degree
   MultiGraph.degree_iter
   MultiGraph.size
   MultiGraph.number_of_edges
   MultiGraph.nodes_with_selfloops
   MultiGraph.selfloop_edges
   MultiGraph.number_of_selfloops


Making copies and subgraphs
===========================
.. autosummary::
   :toctree: generated/

   MultiGraph.copy
   MultiGraph.to_undirected
   MultiGraph.to_directed
   MultiGraph.subgraph