Skip to content

Commit ccb66f6

Browse files
committed
Fix lock
1 parent f6da3b3 commit ccb66f6

File tree

3 files changed

+13
-42
lines changed

3 files changed

+13
-42
lines changed

poetry.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ optional = true
7070
poethepoet = "^0.16.0"
7171
portray = "^1.7.0"
7272
matplotlib = { version = "^3.5" }
73-
numpydoc = { version = "^1.4" }
73+
numpydoc = { version = "1.4" }
7474
pydata-sphinx-theme = { version = "^0.9.0" }
7575
sphinx = { version = "^5.1.1" }
7676
sphinxcontrib-bibtex = { version = "^2.4.2" }

pywhy_graphs/networkx/classes/mixededge.py

Lines changed: 7 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -112,11 +112,8 @@ def __init__(self, graphs=None, edge_types=None, **attr):
112112
def __str__(self):
113113
"""Returns a short summary of the graph.
114114
115-
Returns
116-
-------
117-
info : string
118-
Graph information including the graph name (if any), graph type, and the
119-
number of nodes and edges.
115+
Graph information including the graph name (if any), graph type, and the
116+
number of nodes and edges.
120117
121118
Examples
122119
--------
@@ -263,10 +260,11 @@ def has_node(self, n):
263260
Parameters
264261
----------
265262
n : node
263+
The node to query. Identical to ``n in G``.
266264
267265
Returns
268266
-------
269-
has : bool
267+
has : bool
270268
Whether or not the graph has node 'n'.
271269
272270
Examples
@@ -289,11 +287,6 @@ def has_node(self, n):
289287
def number_of_nodes(self):
290288
"""Returns the number of nodes in the graph.
291289
292-
Returns
293-
-------
294-
nnodes : int
295-
The number of nodes in the graph.
296-
297290
See Also
298291
--------
299292
order: identical method
@@ -310,11 +303,6 @@ def number_of_nodes(self):
310303
def order(self):
311304
"""Returns the number of nodes in the graph.
312305
313-
Returns
314-
-------
315-
nnodes : int
316-
The number of nodes in the graph.
317-
318306
See Also
319307
--------
320308
number_of_nodes: identical method
@@ -348,10 +336,7 @@ def clear_edge_types(self):
348336
def __iter__(self):
349337
"""Iterate over the nodes. Use: 'for n in G'.
350338
351-
Returns
352-
-------
353-
niter : iterator
354-
An iterator over all nodes in the graph.
339+
An iterator over all nodes in the graph.
355340
356341
Examples
357342
--------
@@ -380,11 +365,6 @@ def __contains__(self, n):
380365
def __len__(self):
381366
"""Returns the number of nodes in the graph. Use: 'len(G)'.
382367
383-
Returns
384-
-------
385-
nnodes : int
386-
The number of nodes in the graph.
387-
388368
See Also
389369
--------
390370
number_of_nodes: identical method
@@ -402,15 +382,7 @@ def __len__(self):
402382
def __getitem__(self, n):
403383
"""Returns a dict of neighbors of node n. Use: 'G[n]'.
404384
405-
Parameters
406-
----------
407-
n : node
408-
A node in the graph.
409-
410-
Returns
411-
-------
412-
adj_dict : dictionary
413-
The adjacency dictionary for nodes connected to n.
385+
The adjacency dictionary for nodes connected to n.
414386
415387
Notes
416388
-----
@@ -1093,7 +1065,7 @@ def degree(self, nbunch=None, weight=None):
10931065
10941066
Returns
10951067
-------
1096-
deg_dicts : dictionary of DegreeView or int
1068+
deg_dicts : dictionary of DegreeView | int
10971069
If multiple nodes are requested (the default), returns a ``DegreeView``
10981070
mapping nodes to their degree.
10991071
If a single node is requested, returns the degree of the node as an integer.
@@ -1120,7 +1092,6 @@ def size(self, weight=None, edge_type="all"):
11201092
size : float
11211093
The number of edges or
11221094
(if weight keyword is provided) the total weight sum.
1123-
11241095
If weight is None, returns an int. Otherwise a float
11251096
(or more general numeric if the weights are more general).
11261097

0 commit comments

Comments
 (0)