Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 8a2e50878ac50dcad74d71305f566f1d > files > 292

python-networkx-0.99-3mdv2010.0.noarch.rpm

.. _multigraph:

==========
MultiGraph
==========

Overview
--------
.. currentmodule:: networkx
.. autoclass:: MultiGraph

Adding and Removing Nodes and Edges
-----------------------------------

.. autosummary::
   :toctree: generated/

   MultiGraph.add_node
   MultiGraph.add_nodes_from
   MultiGraph.remove_node
   MultiGraph.remove_nodes_from
   MultiGraph.add_edge
   MultiGraph.add_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
   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.has_neighbor
   MultiGraph.nodes_with_selfloops
   MultiGraph.selfloop_edges
   MultiGraph.order
   MultiGraph.number_of_nodes
   MultiGraph.__len__
   MultiGraph.size
   MultiGraph.number_of_edges
   MultiGraph.number_of_selfloops
   MultiGraph.degree
   MultiGraph.degree_iter


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

   MultiGraph.copy
   MultiGraph.to_directed
   MultiGraph.subgraph