SorrelC commited on
Commit
5e3b462
·
verified ·
1 Parent(s): 89f1625

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -16
app.py CHANGED
@@ -15,25 +15,25 @@ ENTITY_COLOURS = {
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,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
  '''