Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -15,25 +15,25 @@ ENTITY_COLOURS = {
|
|
| 15 |
|
| 16 |
# Relationship types for dropdown
|
| 17 |
RELATIONSHIP_TYPES = [
|
| 18 |
-
'
|
| 19 |
'knows',
|
| 20 |
-
'
|
| 21 |
-
'
|
| 22 |
-
'
|
| 23 |
-
'
|
| 24 |
-
'
|
| 25 |
-
'
|
| 26 |
'founded',
|
| 27 |
'attended',
|
| 28 |
-
'
|
| 29 |
-
'
|
| 30 |
-
'
|
| 31 |
-
'
|
| 32 |
-
'
|
| 33 |
'wrote',
|
| 34 |
'visited',
|
| 35 |
-
'
|
| 36 |
-
'
|
| 37 |
'other'
|
| 38 |
]
|
| 39 |
|
|
@@ -409,11 +409,11 @@ def generate_network_graph(
|
|
| 409 |
<h4 style="margin: 0 0 10px 0;">📈 Network Statistics</h4>
|
| 410 |
<table style="width: 100%; border-collapse: collapse;">
|
| 411 |
<tr>
|
| 412 |
-
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Nodes</strong></td>
|
| 413 |
<td style="padding: 8px; border-bottom: 1px solid #eee; text-align: right;">{G.number_of_nodes()}</td>
|
| 414 |
</tr>
|
| 415 |
<tr>
|
| 416 |
-
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Edges</strong></td>
|
| 417 |
<td style="padding: 8px; border-bottom: 1px solid #eee; text-align: right;">{G.number_of_edges()}</td>
|
| 418 |
</tr>
|
| 419 |
'''
|
|
|
|
| 15 |
|
| 16 |
# Relationship types for dropdown
|
| 17 |
RELATIONSHIP_TYPES = [
|
| 18 |
+
'related to',
|
| 19 |
'knows',
|
| 20 |
+
'works with',
|
| 21 |
+
'located in',
|
| 22 |
+
'participated in',
|
| 23 |
+
'member of',
|
| 24 |
+
'occurred at',
|
| 25 |
+
'employed by',
|
| 26 |
'founded',
|
| 27 |
'attended',
|
| 28 |
+
'collaborates with',
|
| 29 |
+
'married to',
|
| 30 |
+
'sibling of',
|
| 31 |
+
'parent of',
|
| 32 |
+
'lives at',
|
| 33 |
'wrote',
|
| 34 |
'visited',
|
| 35 |
+
'born in',
|
| 36 |
+
'died in',
|
| 37 |
'other'
|
| 38 |
]
|
| 39 |
|
|
|
|
| 409 |
<h4 style="margin: 0 0 10px 0;">📈 Network Statistics</h4>
|
| 410 |
<table style="width: 100%; border-collapse: collapse;">
|
| 411 |
<tr>
|
| 412 |
+
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Nodes (Entities)</strong></td>
|
| 413 |
<td style="padding: 8px; border-bottom: 1px solid #eee; text-align: right;">{G.number_of_nodes()}</td>
|
| 414 |
</tr>
|
| 415 |
<tr>
|
| 416 |
+
<td style="padding: 8px; border-bottom: 1px solid #eee;"><strong>Edges (Relationships)</strong></td>
|
| 417 |
<td style="padding: 8px; border-bottom: 1px solid #eee; text-align: right;">{G.number_of_edges()}</td>
|
| 418 |
</tr>
|
| 419 |
'''
|