Skip to content

Commit b8b036a

Browse files
feat:density
1 parent d784be5 commit b8b036a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

easygraph/classes/operation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
except ImportError:
2020
pass
2121

22+
2223
def set_edge_attributes(G, values, name=None):
2324
"""Sets edge attributes from a given value or dictionary of values.
2425
@@ -413,6 +414,7 @@ def selfloop_edges(G, data=False, keys=False, default=None):
413414
else:
414415
return ((n, n) for n, nbrs in G.adj.items() if n in nbrs)
415416

417+
416418
def density(G):
417419
r"""Returns the density of a graph.
418420

0 commit comments

Comments
 (0)