Logo Search packages:      
Sourcecode: python-networkx version File versions  Download package

networkx::base::DiGraph Class Reference

Inheritance diagram for networkx::base::DiGraph:

networkx::base::Graph networkx::tree::DirectedTree networkx::xbase::XDiGraph

List of all members.


Detailed Description

A graph with directed edges. Subclass of Graph.

DiGraph inherits from Graph, overriding the following methods:

- __init__: replaces self.adj with the dicts self.pred and self.succ
- __getitem__
- add_node
- delete_node
- add_edge
- delete_edge
- add_nodes_from
- delete_nodes_from
- add_edges_from
- delete_edges_from
- edges_iter
- degree_iter
- degree
- copy
- clear
- subgraph
- is_directed
- to_directed
- to_undirected

Digraph adds the following methods to those of Graph:

- successors
- successors_iter
- predecessors
- predecessors_iter
- out_degree
- out_degree_iter
- in_degree
- in_degree_iter

Definition at line 1022 of file base.py.


Public Member Functions

def __contains__
def __getitem__
def __init__
def __iter__
def __len__
def __str__
def add_cycle
def add_edge
def add_edges_from
def add_node
def add_nodes_from
def add_path
def clear
def copy
def degree
def degree_iter
def delete_edge
def delete_edges_from
def delete_node
def delete_nodes_from
def edge_boundary
def edges
def edges_iter
def has_edge
def has_neighbor
def has_node
def in_degree
def in_degree_iter
def in_edges
def in_edges_iter
def info
def is_directed
def neighbors
def neighbors_iter
def node_boundary
def nodes
def nodes_iter
def number_of_edges
def number_of_nodes
def order
def out_degree
def out_degree_iter
def out_edges
def out_edges_iter
def predecessors
def predecessors_iter
def prepare_nbunch
def print_dna
def reverse
def size
def subgraph
def successors
def successors_iter
def to_directed
def to_undirected

Public Attributes

 adj
 dna
 name
 pred
 succ

Static Public Attributes

 in_neighbors = predecessors
 neighbors = successors
 neighbors_iter = successors_iter

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index