Skip to content

Commit 0613e3a

Browse files
committed
Update README
1 parent d1f0091 commit 0613e3a

File tree

1 file changed

+37
-1
lines changed

1 file changed

+37
-1
lines changed

README.md

Lines changed: 37 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,39 @@
11
# Python-test
22

3-
This repository is for testing Python Scripts
3+
This repository is for testing Python Scripts
4+
5+
## Project Overview
6+
7+
This workspace contains Python scripts for visualizing meeting data as directed graphs using NetworkX and Matplotlib.
8+
9+
### Nodes-Edges.py
10+
11+
- **Purpose:**
12+
Fetches a single meeting summary from a remote JSON file, parses its structure, and builds a directed graph representing relationships between workgroups, meetings, people, documents, agenda items, actions, decisions, tags, and emotions.
13+
- **Key Steps:**
14+
1. Downloads JSON data from a URL.
15+
2. Handles both list and dict JSON structures.
16+
3. Safely extracts nested fields.
17+
4. Adds nodes and edges for all relevant entities.
18+
5. Saves the resulting graph visualization as `graph.png`.
19+
20+
### Nodes-Edges2.py
21+
22+
- **Purpose:**
23+
Processes an array of meeting summaries from a remote JSON file, building a directed graph that includes all workgroups and their associated meetings, people, documents, agenda items, actions, decisions, tags, and emotions.
24+
- **Key Steps:**
25+
1. Downloads JSON data from a URL.
26+
2. Iterates through all workgroups in the array.
27+
3. Safely extracts nested fields for each workgroup.
28+
4. Adds nodes and edges for all entities across all meetings.
29+
5. Saves the resulting graph visualization as `graph2.png`.
30+
31+
---
32+
33+
**Note:**
34+
Both scripts are designed for headless environments (such as dev containers). The graph images are saved to disk and can be viewed using the default browser with:
35+
36+
```bash
37+
$BROWSER graph.png
38+
$BROWSER graph2.png
39+
```

0 commit comments

Comments
 (0)