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); }
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); }