Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > 08dc075002a4e7b275dd7256439fe79b > files > 440

python-networkx-1.2-1mdv2010.1.noarch.rpm

.. _multigraph:

=================================================================
MultiGraph - Undirected graphs with self loops and parallel edges
=================================================================

Overview
========
.. currentmodule:: networkx
.. autofunction:: MultiGraph

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.remove_edge
   MultiGraph.remove_edges_from
   MultiGraph.add_star
   MultiGraph.add_path
   MultiGraph.add_cycle
   MultiGraph.clear



Iterating over nodes and edges
==============================
.. autosummary::
   :toctree: generated/

   MultiGraph.nodes
   MultiGraph.nodes_iter
   MultiGraph.__iter__
   MultiGraph.edges
   MultiGraph.edges_iter
   MultiGraph.get_edge_data
   MultiGraph.neighbors
   MultiGraph.neighbors_iter
   MultiGraph.__getitem__
   MultiGraph.adjacency_list
   MultiGraph.adjacency_iter
   MultiGraph.nbunch_iter



Information about graph structure
=================================
.. autosummary::
   :toctree: generated/

   MultiGraph.has_node
   MultiGraph.__contains__
   MultiGraph.has_edge
   MultiGraph.order
   MultiGraph.number_of_nodes
   MultiGraph.__len__
   MultiGraph.degree
   MultiGraph.degree_iter
   MultiGraph.size
   MultiGraph.number_of_edges
   MultiGraph.nodes_with_selfloops
   MultiGraph.selfloop_edges
   MultiGraph.number_of_selfloops


Making copies and subgraphs
===========================
.. autosummary::
   :toctree: generated/

   MultiGraph.copy
   MultiGraph.to_undirected
   MultiGraph.to_directed
   MultiGraph.subgraph