0.2.0 • Published 9 months ago
@receptron/graphai_vue_cytoscape v0.2.0
Composable to show GraphAI state to Vue using cytoscape
install
yarn add @receptron/graphai_vue_cytoscapeUsage
import { defineComponent, ref } from "vue";
import { GraphAI } from "graphai";
import { useCytoscape } from "@receptron/graphai_vue_cytoscape";
export default defineComponent({
setup() {
const selectdGraph = ref(graphData)
const { updateCytoscape, cytoscapeRef, resetCytoscape } = useCytoscape(selectdGraph);
const run = async () => {
const graphai = new GraphAI(selectdGraph.value, agents);
graphai.registerCallback(updateCytoscape);
await graphai.run();
}
run();
return {
cytoscapeRef
};
}
});requirement
GraphAI 0.6.23 or above
0.0.10
12 months ago
0.0.11
12 months ago
0.0.12
12 months ago
0.0.13
12 months ago
0.0.14
11 months ago
0.2.0
9 months ago
0.0.15
11 months ago
0.0.9
12 months ago
0.0.16
10 months ago
0.0.8
12 months ago
0.0.17
10 months ago
0.0.5
12 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago