9
.. currentmodule:: networkx
10
.. autoclass:: MultiGraph
12
Adding and Removing Nodes and Edges
13
-----------------------------------
19
MultiGraph.add_nodes_from
20
MultiGraph.remove_node
21
MultiGraph.remove_nodes_from
23
MultiGraph.add_edges_from
24
MultiGraph.remove_edge
25
MultiGraph.remove_edges_from
33
Iterating over nodes and edges
34
------------------------------
45
MultiGraph.neighbors_iter
46
MultiGraph.__getitem__
47
MultiGraph.adjacency_list
48
MultiGraph.adjacency_iter
49
MultiGraph.nbunch_iter
53
Information about graph structure
54
---------------------------------
59
MultiGraph.__contains__
61
MultiGraph.has_neighbor
62
MultiGraph.nodes_with_selfloops
63
MultiGraph.selfloop_edges
65
MultiGraph.number_of_nodes
68
MultiGraph.number_of_edges
69
MultiGraph.number_of_selfloops
71
MultiGraph.degree_iter
74
Making copies and subgraphs
75
---------------------------
80
MultiGraph.to_directed