Пример #1
0
        public static Node_Process CreateNode(LGSPGraph graph)
        {
            Node_Process node = new Node_Process();

            graph.AddNode(node);
            return(node);
        }
Пример #2
0
        public static Node_Node CreateNode(LGSPGraph graph)
        {
            Node_Node node = new Node_Node();

            graph.AddNode(node);
            return(node);
        }
Пример #3
0
        public override IGraphElement[] ModifyNoReuse(LGSPGraph graph, LGSPMatch match)
        {
            LGSPNode node_p2     = match.nodes[(int)NodeNums.@p2 - 1];
            LGSPNode node_p1     = match.nodes[(int)NodeNums.@p1 - 1];
            LGSPEdge edge__edge0 = match.edges[(int)EdgeNums.@_edge0 - 1];
            LGSPNode node__node0 = graph.AddNode(NodeType_Process.typeVar);
            LGSPEdge edge__edge1 = graph.AddEdge(EdgeType_connection.typeVar, node_p1, node__node0);
            LGSPEdge edge__edge2 = graph.AddEdge(EdgeType_connection.typeVar, node__node0, node_p2);

            graph.Remove(edge__edge0);
            return(EmptyReturnElements);
        }