Skip to content

Commit 9bd0f76

Browse files
authored
Create get_members_of_object.py
1 parent d120240 commit 9bd0f76

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

get_members_of_object.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# import
2+
import networkx as nx
3+
from inspect import getmembers
4+
5+
# Fetching the name of all drawing related members of NetworkX class.
6+
for x in getmembers(nx):
7+
if 'draw' in x[0]:
8+
print(x)

0 commit comments

Comments
 (0)