We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1e71351 commit 336140bCopy full SHA for 336140b
1 file changed
stubs/networkx/networkx/classes/multigraph.pyi
@@ -5,6 +5,7 @@ from typing_extensions import TypeAlias
5
from networkx.classes.coreviews import MultiAdjacencyView
6
from networkx.classes.graph import Graph, _Node
7
from networkx.classes.multidigraph import MultiDiGraph
8
+from networkx.classes.reportviews import OutMultiEdgeView
9
10
_MultiEdge: TypeAlias = tuple[_Node, _Node, int] # noqa: Y047
11
@@ -23,3 +24,5 @@ class MultiGraph(Graph[_Node]):
23
24
def to_directed(self, as_view: bool = False) -> MultiDiGraph[_Node]: ...
25
def to_undirected(self, as_view: bool = False) -> MultiGraph[_Node]: ...
26
def number_of_edges(self, u: _Node | None = None, v: _Node | None = None) -> int: ...
27
+ @cached_property
28
+ def edges(self) -> OutMultiEdgeView[_Node]: ...
0 commit comments