Skip to content

Commit

Permalink
fix(CreateIndex): 🐛 Sinks are nodes with no outgoing **ups** (fix #231)
Browse files Browse the repository at this point in the history
  • Loading branch information
SkepticMystic committed Jan 2, 2022
1 parent 1b69ada commit 771a42a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -51899,7 +51899,8 @@ class BCPlugin extends require$$0.Plugin {
const g = getSubInDirs(mainG, "up", "down");
const closed = getReflexiveClosure(g, settings.userHiers);
const onlyDowns = getSubInDirs(closed, "down");
const sinks = getSinks(mainG);
const onlyUps = getSubInDirs(closed, "up");
const sinks = getSinks(onlyUps);
let globalIndex = "";
sinks.forEach((terminal) => {
globalIndex += terminal + "\n";
Expand Down
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,9 @@ export default class BCPlugin extends Plugin {
const g = getSubInDirs(mainG, "up", "down");
const closed = getReflexiveClosure(g, settings.userHiers);
const onlyDowns = getSubInDirs(closed, "down");
const onlyUps = getSubInDirs(closed, "up");

const sinks = getSinks(mainG);
const sinks = getSinks(onlyUps);

let globalIndex = "";
sinks.forEach((terminal) => {
Expand Down

0 comments on commit 771a42a

Please sign in to comment.