2025-10-19 09:08:49 +02:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
|
<html lang="fr">
|
|
|
|
|
|
<head>
|
|
|
|
|
|
<meta charset="UTF-8" />
|
|
|
|
|
|
<title>Simulation de graphe d'amis</title>
|
|
|
|
|
|
<script type="module" src="src/network.ts"></script>
|
|
|
|
|
|
<style>
|
|
|
|
|
|
body { font-family: sans-serif; }
|
|
|
|
|
|
#sigma-container { width: 100%; height: 400px; border: 1px solid #ccc; margin-top: 1rem; }
|
|
|
|
|
|
#graph-container canvas {
|
|
|
|
|
|
display: block;
|
|
|
|
|
|
margin: 0 auto; /* si vous voulez le centrer sans perturber Sigma */
|
|
|
|
|
|
}
|
|
|
|
|
|
</style>
|
|
|
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
|
|
|
<h1>Simulation de réseau d’amitiés</h1>
|
|
|
|
|
|
<input type="file" id="fileInput" accept="application/json" />
|
|
|
|
|
|
<button id="generateGraph">Générer le graphe</button>
|
|
|
|
|
|
<button id="stopSim" disabled>⏸️ Stop</button>
|
|
|
|
|
|
<div id="sigma-container"></div>
|
|
|
|
|
|
</body>
|
2025-10-17 07:44:20 +02:00
|
|
|
|
</html>
|