diff --git a/src/Components/Stats.svelte b/src/Components/Stats.svelte index daac00c9..bf3f4e2b 100644 --- a/src/Components/Stats.svelte +++ b/src/Components/Stats.svelte @@ -145,6 +145,7 @@ Nodes {#each DIRECTIONS as dir} + {/each} + Real Edges {#each DIRECTIONS as dir} + {/each} + Implied Edges {#each DIRECTIONS as dir} + {/each} + Totals Nodes {#each DIRECTIONS as dir} + datum[dir].Merged.nodesStr).join("\n")} @@ -245,6 +252,7 @@ Real Edges {#each DIRECTIONS as dir} + datum[dir].Merged.edgesStr).join("\n")} @@ -282,6 +290,7 @@ Implied Edges {#each DIRECTIONS as dir} + datum[dir].Implied.edgesStr).join("\n")} diff --git a/src/main.ts b/src/main.ts index 2d630eba..20395dfc 100644 --- a/src/main.ts +++ b/src/main.ts @@ -499,12 +499,12 @@ export default class BCPlugin extends Plugin { const targets = hier[dir][fieldName]; this.populateGraph(g, currFileName, targets, dir, fieldName); + addNodeIfNot(graphs.main, currFileName, { + dir, + fieldName, + order: neighbours.order, + }); targets.forEach((target) => { - addNodeIfNot(graphs.main, currFileName, { - dir, - fieldName, - order: neighbours.order, - }); addNodeIfNot(graphs.main, target, { dir, fieldName,