Skip to content

Instantly share code, notes, and snippets.

forEachUnlinkedNode : function (nodeId, callback, oriented) {
var graph = this,
node = graph.getNode(nodeId),
linkedNodeId,
currentNodeId;
if (node && typeof callback === 'function') {
var linkedNodes = {};
graph.forEachLinkedNode(nodeId, function (node) { linkedNodes[node.id] = true; }, oriented);
@anvaka
anvaka / gist:4108943
Created November 19, 2012 04:22 — forked from Restuta/gist:4108845
BDD syntax example
[Feature]
public class Tool_usage
{
[Scenario]
public void Use_new_tool()
{
// Can you do this?
Tool tool = default(Tool);
"Given I created a new tool" =>
{