async function go(){
const ogma = new Ogma({
container: 'host',
options:{
backgroundColor: "transparent"
};
})await ogma.setGraph({
nodes: [{ id: 0 }, { id: 1}, { id: 2}],
edges: [
source: 0, target: 1},
{ source: 1, target: 2},
{ source: 2, target: 0 }
{
];
})await ogma.layouts.force({ locate: true })
}go()
Ogma
Graphs
Ogma
Ogma