SorrelC commited on
Commit
e2b5dec
·
verified ·
1 Parent(s): bbc1e33

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -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
  '''
@@ -424,13 +424,13 @@ def generate_network_graph(
424
  stats_html += f'''
425
  <tr>
426
  <td style="padding: 8px; border-bottom: 1px solid #eee;">
427
- <strong>Connectedness (Density)</strong>
428
  <div style="font-size: 11px; color: #888; font-weight: normal;">0 = isolated, 1 = fully linked</div>
429
  </td>
430
  <td style="padding: 8px; border-bottom: 1px solid #eee; text-align: right;">{density:.3f}</td>
431
  </tr>
432
  <tr>
433
- <td style="padding: 8px;"><strong>Avg. Connections</strong></td>
434
  <td style="padding: 8px; text-align: right;">{avg_degree:.2f}</td>
435
  </tr>
436
  </table>
 
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
  '''
 
424
  stats_html += f'''
425
  <tr>
426
  <td style="padding: 8px; border-bottom: 1px solid #eee;">
427
+ <strong>Density (Connectedness)</strong>
428
  <div style="font-size: 11px; color: #888; font-weight: normal;">0 = isolated, 1 = fully linked</div>
429
  </td>
430
  <td style="padding: 8px; border-bottom: 1px solid #eee; text-align: right;">{density:.3f}</td>
431
  </tr>
432
  <tr>
433
+ <td style="padding: 8px;"><strong>Avg. Density</strong></td>
434
  <td style="padding: 8px; text-align: right;">{avg_degree:.2f}</td>
435
  </tr>
436
  </table>