public virtual GraphBuildInstructionSpan MakeNodeSpan(TNode node) { GraphBuildInstructionSpan output = new GraphBuildInstructionSpan(); GraphBuildInstruction instruction = new GraphBuildInstruction(); instruction.InstructionType = GetShapeForNode(node); instruction.Parameters.Add(node.UID); output.Add(instruction); return(output); }
public virtual GraphBuildInstructionSpan MakeLinkSpan(TNode nodeA, TNode nodeB) { GraphBuildInstructionSpan output = new GraphBuildInstructionSpan(); output.Add(MakeNodeInstruction(nodeA, GetShapeForNode(nodeA))); GraphBuildInstruction instruction = new GraphBuildInstruction(); instruction.InstructionType = GetShapeForLink(nodeA, nodeB); output.Add(instruction); output.Add(MakeNodeInstruction(nodeB, GetShapeForNode(nodeB))); return(output); }
protected abstract void ExecuteSpan(GraphBuildInstructionSpan span, TGraph target);
protected override void ExecuteSpan(GraphBuildInstructionSpan span, DirectedGraph target) { throw new NotImplementedException(); }