Example #1
0
        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);
        }
Example #2
0
        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);
        }
Example #3
0
 protected abstract void ExecuteSpan(GraphBuildInstructionSpan span, TGraph target);
 protected override void ExecuteSpan(GraphBuildInstructionSpan span, DirectedGraph target)
 {
     throw new NotImplementedException();
 }