cyyeh commited on
Commit
eb1b7b9
·
1 Parent(s): 7a699a5
README.md CHANGED
@@ -48,6 +48,8 @@ input to one GitHub public repo's URL(input)
48
  - [x] Generate a basic `networkx` graph given python imports
49
  - [x] Visualize a basic `networkx` graph using `pyvis`
50
  - [x] Build a `streamlit` app
 
 
51
  ## References
52
 
53
  - [How to set up a perfect Python project](https://sourcery.ai/blog/python-best-practices/)
 
48
  - [x] Generate a basic `networkx` graph given python imports
49
  - [x] Visualize a basic `networkx` graph using `pyvis`
50
  - [x] Build a `streamlit` app
51
+ - [ ] Change network library from `networkx` to `graph-tool` due to [performance issue](https://graph-tool.skewed.de/performance)
52
+ - [ ] Choose an appropriate network visualization library
53
  ## References
54
 
55
  - [How to set up a perfect Python project](https://sourcery.ai/blog/python-best-practices/)
app.py CHANGED
@@ -46,7 +46,7 @@ if clicked_ok_button and owner and repo:
46
  with st.spinner("Getting python files..."):
47
  python_files = get_python_files(owner, repo, path, ref=ref)
48
 
49
- with st.spinner("Generating imports graph..."):
50
  imports_graph = generate_imports_graph(python_files)
51
 
52
  with st.spinner("Generating graph visualization file..."):
 
46
  with st.spinner("Getting python files..."):
47
  python_files = get_python_files(owner, repo, path, ref=ref)
48
 
49
+ with st.spinner("Parsing python files and generating imports graph..."):
50
  imports_graph = generate_imports_graph(python_files)
51
 
52
  with st.spinner("Generating graph visualization file..."):
py_code_analyzer/imports_graph_visualizer.py CHANGED
@@ -11,7 +11,7 @@ class ImportsGraphVisualizer:
11
  cls,
12
  imports_graph: nx.Graph,
13
  directed: bool = True,
14
- layout: bool = True, # Use hierarchical if True
15
  neighborhood_highlight: bool = True,
16
  select_menu: bool = True,
17
  width: int = 100,
 
11
  cls,
12
  imports_graph: nx.Graph,
13
  directed: bool = True,
14
+ layout: bool = False, # Use hierarchical if True
15
  neighborhood_highlight: bool = True,
16
  select_menu: bool = True,
17
  width: int = 100,