diff --git a/src/Components/Stats.svelte b/src/Components/Stats.svelte index 88e26b94..8efde06c 100644 --- a/src/Components/Stats.svelte +++ b/src/Components/Stats.svelte @@ -1,52 +1,142 @@ +
Hierarchy | +Count | +||||
---|---|---|---|---|---|
+ | Measure | +Up | +Same | +Down | +Total | +
+ {hierStrs[i]} + | +Nodes | + {#each ["up", "same", "down"] as dir} ++ {Math.max( + ...Object.values(hierGs[i][dir]).map((g) => g.nodes().length) + )} + | + {/each} +|||
Edges | + {#each ["up", "same", "down"] as dir} ++ {sum(Object.values(hierGs[i][dir]).map((g) => g.edges().length))} + | + {/each} +