Nodes selection store, linking and unlinking nodes

This commit is contained in:
2025-11-11 13:01:32 +01:00
parent cd4963a4bd
commit 4092b12aef
6 changed files with 126 additions and 17 deletions

View File

@@ -15,7 +15,9 @@ export function graphToDot(g) {
// edges
for (const e of g.edges) {
lines.push(` \"${e.from}\" -> \"${e.to}\";`);
const attrs = [];
attrs.push(`id=\"${e.id}\"`)
lines.push(` \"${e.from}\" -> \"${e.to}\" [${attrs.join(', ')}];`);
}
// close