Nodes selection store, linking and unlinking nodes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user