Skip to content

Instantly share code, notes, and snippets.

@aalmiray
Created July 18, 2010 11:50
Show Gist options
  • Save aalmiray/480348 to your computer and use it in GitHub Desktop.
Save aalmiray/480348 to your computer and use it in GitHub Desktop.
package graph
application(title: 'Graph',
pack: true,
locationByPlatform:true,
iconImage: imageIcon('/griffon-icon-48x48.png').image,
iconImages: [imageIcon('/griffon-icon-48x48.png').image,
imageIcon('/griffon-icon-32x32.png').image,
imageIcon('/griffon-icon-16x16.png').image]) {
graphComponent {
graph {
applyGraphStyle('STAR')
v1 = insertVertex(defaultParent, null, "Hello,", 20, 20, 80, 80, 'STAR')
v2 = insertVertex(defaultParent, null, "World!", 200, 150, 80, 30)
insertEdge(defaultParent, null, "", v1, v2)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment