graph: attempt to use forceAtlas2 algo for layout
This commit is contained in:
parent
7aba50fef3
commit
322204603c
1 changed files with 2 additions and 0 deletions
|
@ -1,5 +1,6 @@
|
|||
<script>
|
||||
import { sigma } from "sigma";
|
||||
import "sigma/build/plugins/sigma.layout.forceAtlas2.min.js";
|
||||
import { onMount } from "svelte";
|
||||
|
||||
/**
|
||||
|
@ -45,6 +46,7 @@
|
|||
graph: g,
|
||||
container: "c",
|
||||
});
|
||||
s.startForceAtlas2();
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Reference in a new issue