.. _multidigraph: ============ MultiDiGraph ============ Overview -------- .. currentmodule:: networkx .. autoclass:: MultiDiGraph Adding and Removing Nodes and Edges ----------------------------------- .. autosummary:: :toctree: generated/ MultiDiGraph.add_node MultiDiGraph.add_nodes_from MultiDiGraph.remove_node MultiDiGraph.remove_nodes_from MultiDiGraph.add_edge MultiDiGraph.add_edges_from MultiDiGraph.remove_edge MultiDiGraph.remove_edges_from MultiDiGraph.add_star MultiDiGraph.add_path MultiDiGraph.add_cycle MultiDiGraph.clear Iterating over nodes and edges ------------------------------ .. autosummary:: :toctree: generated/ MultiDiGraph.nodes MultiDiGraph.nodes_iter MultiDiGraph.__iter__ MultiDiGraph.edges MultiDiGraph.edges_iter MultiDiGraph.get_edge MultiDiGraph.neighbors MultiDiGraph.neighbors_iter MultiDiGraph.__getitem__ MultiDiGraph.successors MultiDiGraph.successors_iter MultiDiGraph.predecessors MultiDiGraph.predecessors_iter MultiDiGraph.adjacency_list MultiDiGraph.adjacency_iter MultiDiGraph.nbunch_iter Information about graph structure --------------------------------- .. autosummary:: :toctree: generated/ MultiDiGraph.has_node MultiDiGraph.__contains__ MultiDiGraph.has_edge MultiDiGraph.has_neighbor MultiDiGraph.nodes_with_selfloops MultiDiGraph.selfloop_edges MultiDiGraph.order MultiDiGraph.number_of_nodes MultiDiGraph.__len__ MultiDiGraph.size MultiDiGraph.number_of_edges MultiDiGraph.number_of_selfloops MultiDiGraph.degree MultiDiGraph.degree_iter Making copies and subgraphs --------------------------- .. autosummary:: :toctree: generated/ MultiDiGraph.copy MultiDiGraph.to_undirected MultiDiGraph.subgraph MultiDiGraph.reverse