Statistics
| Branch: | Revision:

iof-tools / networkxMiCe / networkx-master / doc / reference / classes / multigraph.rst @ 5cef0f13

History | View | Annotate | Download (1.61 KB)

1
.. _multigraph:
2

    
3
=================================================================
4
MultiGraph---Undirected graphs with self loops and parallel edges
5
=================================================================
6

    
7
Overview
8
========
9
.. currentmodule:: networkx
10
.. autoclass:: MultiGraph
11

    
12
Methods
13
=======
14

    
15
Adding and removing nodes and edges
16
-----------------------------------
17

    
18
.. autosummary::
19
   :toctree: generated/
20

    
21
   MultiGraph.__init__
22
   MultiGraph.add_node
23
   MultiGraph.add_nodes_from
24
   MultiGraph.remove_node
25
   MultiGraph.remove_nodes_from
26
   MultiGraph.add_edge
27
   MultiGraph.add_edges_from
28
   MultiGraph.add_weighted_edges_from
29
   MultiGraph.new_edge_key
30
   MultiGraph.remove_edge
31
   MultiGraph.remove_edges_from
32
   MultiGraph.update
33
   MultiGraph.clear
34

    
35

    
36

    
37
Reporting nodes edges and neighbors
38
-----------------------------------
39
.. autosummary::
40
   :toctree: generated/
41

    
42
   MultiGraph.nodes
43
   MultiGraph.__iter__
44
   MultiGraph.has_node
45
   MultiGraph.__contains__
46
   MultiGraph.edges
47
   MultiGraph.has_edge
48
   MultiGraph.get_edge_data
49
   MultiGraph.neighbors
50
   MultiGraph.adj
51
   MultiGraph.__getitem__
52
   MultiGraph.adjacency
53
   MultiGraph.nbunch_iter
54

    
55

    
56

    
57
Counting nodes edges and neighbors
58
----------------------------------
59
.. autosummary::
60
   :toctree: generated/
61

    
62
   MultiGraph.order
63
   MultiGraph.number_of_nodes
64
   MultiGraph.__len__
65
   MultiGraph.degree
66
   MultiGraph.size
67
   MultiGraph.number_of_edges
68

    
69

    
70
Making copies and subgraphs
71
---------------------------
72
.. autosummary::
73
   :toctree: generated/
74

    
75
   MultiGraph.copy
76
   MultiGraph.to_undirected
77
   MultiGraph.to_directed
78
   MultiGraph.subgraph
79
   MultiGraph.edge_subgraph