Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jacomyal/sigma-core
SiGMa core repository
https://github.com/jacomyal/sigma-core
Last synced: 11 days ago
JSON representation
SiGMa core repository
- Host: GitHub
- URL: https://github.com/jacomyal/sigma-core
- Owner: jacomyal
- License: other
- Created: 2011-04-13T12:15:08.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2011-10-06T20:31:55.000Z (about 13 years ago)
- Last Synced: 2024-10-12T01:46:05.898Z (about 1 month ago)
- Language: ActionScript
- Homepage:
- Size: 164 KB
- Stars: 4
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
####SiGMa-core
The core repository of SiGMa, the *Simple Graph Mapper*- - -
Here is a simple example of how to use **SiGMa-core** in an *ActionScript 3* project:
// SiGMa-core use example:
// Initialize the CoreControler, by giving it a DisplayObjectContainer
// the DisplayObjectContainer where to you want to draw your graph
CoreControler.init(stage,stage.stageWidth,stage.stageHeight);// Create some nodes and edges...
var n1:Node = new Node("n1","Hello");
n1.x = 0; n1.y = 0; n1.size = 30;var n2:Node = new Node("n2","world!");
n2.x = 0; n2.y = 5; n2.size = 30;var e1:Edge = new Edge("e1","n1","n2");
// ... and push them into the graph
Graph.pushNode(n1);
Graph.pushNode(n2);
Graph.pushEdge(e1);