Skip to content

2graphic/sinap-core

Repository files navigation

Introduction

In order to support arbitrary graph based languages, sinap uses plugins to determine how to execute a graph. These plugins can be written in a number of langauges (currently TypeScript and Python).

Plugin Loaders

Sinap IDE loads plugins via different loaders. Loaders conform to the PluginLoader interface.

Plugin Architecture

TODO: Dyllon, describe the overall structure of an plugin, being a directory with some package.json

For a more complete picture of how to make a plugin, visit the readmes for the Typescript and Python loaders (linked to in the introduction).

Model

Model is the class that manages Sinap's representation of a graph.

// make a model of the default type
const q0 = model.makeNode();
// set an attribute
q0.set("label", Value.makePrimitive(model.environment, "q0"));

For more of a reference on how to use sinap Values (the thing that makeNode/Edge return) see sinap-types. For more examples of using the model see test-model.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •