Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.33 KB)

1
.. _graph:
2

    
3
=========================================
4
Graph---Undirected graphs with self loops
5
=========================================
6

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

    
12
Methods
13
=======
14

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

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

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

    
34

    
35

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

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

    
54

    
55

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

    
61
   Graph.order
62
   Graph.number_of_nodes
63
   Graph.__len__
64
   Graph.degree
65
   Graph.size
66
   Graph.number_of_edges
67

    
68

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

    
74
   Graph.copy
75
   Graph.to_undirected
76
   Graph.to_directed
77
   Graph.subgraph
78
   Graph.edge_subgraph