blob: ae032ffd93b7a3d84070d60e0a4250167e8c7534 (
plain)
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
|
.. _multigraph:
=================================================================
MultiGraph---Undirected graphs with self loops and parallel edges
=================================================================
Overview
========
.. currentmodule:: networkx
.. autoclass:: MultiGraph
Methods
=======
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.new_edge_key
MultiGraph.remove_edge
MultiGraph.remove_edges_from
MultiGraph.update
MultiGraph.clear
MultiGraph.clear_edges
Reporting nodes edges and neighbors
-----------------------------------
.. autosummary::
:toctree: generated/
MultiGraph.nodes
MultiGraph.__iter__
MultiGraph.has_node
MultiGraph.__contains__
MultiGraph.edges
MultiGraph.has_edge
MultiGraph.get_edge_data
MultiGraph.neighbors
MultiGraph.adj
MultiGraph.__getitem__
MultiGraph.adjacency
MultiGraph.nbunch_iter
Counting nodes edges and neighbors
----------------------------------
.. autosummary::
:toctree: generated/
MultiGraph.order
MultiGraph.number_of_nodes
MultiGraph.__len__
MultiGraph.degree
MultiGraph.size
MultiGraph.number_of_edges
Making copies and subgraphs
---------------------------
.. autosummary::
:toctree: generated/
MultiGraph.copy
MultiGraph.to_undirected
MultiGraph.to_directed
MultiGraph.subgraph
MultiGraph.edge_subgraph
|