0.2.0 • Published 10 months ago

@receptron/graphai_vue_cytoscape v0.2.0

Weekly downloads
-
License
MIT
Repository
github
Last release
10 months ago

Composable to show GraphAI state to Vue using cytoscape

install

yarn add @receptron/graphai_vue_cytoscape

Usage

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

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.14

12 months ago

0.2.0

10 months ago

0.0.15

12 months ago

0.0.9

1 year ago

0.0.16

11 months ago

0.0.8

1 year ago

0.0.17

10 months ago

0.0.5

1 year ago

0.0.7

1 year ago

0.0.6

1 year 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