Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (1.58 KB)

1
.. _digraph:
2

    
3
=========================================
4
DiGraph---Directed graphs with self loops
5
=========================================
6

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

    
12
Methods
13
=======
14

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

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

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

    
34

    
35

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

    
41
   DiGraph.nodes
42
   DiGraph.__iter__
43
   DiGraph.has_node
44
   DiGraph.__contains__
45
   DiGraph.edges
46
   DiGraph.out_edges
47
   DiGraph.in_edges
48
   DiGraph.has_edge
49
   DiGraph.get_edge_data
50
   DiGraph.neighbors
51
   DiGraph.adj
52
   DiGraph.__getitem__
53
   DiGraph.successors
54
   DiGraph.succ
55
   DiGraph.predecessors
56
   DiGraph.pred
57
   DiGraph.adjacency
58
   DiGraph.nbunch_iter
59

    
60

    
61
Counting nodes edges and neighbors
62
----------------------------------
63
.. autosummary::
64
   :toctree: generated/
65

    
66
   DiGraph.order
67
   DiGraph.number_of_nodes
68
   DiGraph.__len__
69
   DiGraph.degree
70
   DiGraph.in_degree
71
   DiGraph.out_degree
72
   DiGraph.size
73
   DiGraph.number_of_edges
74

    
75

    
76
Making copies and subgraphs
77
---------------------------
78
.. autosummary::
79
   :toctree: generated/
80

    
81
   DiGraph.copy
82
   DiGraph.to_undirected
83
   DiGraph.to_directed
84
   DiGraph.subgraph
85
   DiGraph.edge_subgraph
86
   DiGraph.reverse