Exemplo n.º 1
0
        public override bool AreAttributesEqual(GRGEN_LIBGR.IGraphElement that)
        {
            if (!(that is @Edge))
            {
                return(false);
            }
            @Edge that_ = (@Edge)that;

            return(true
                   );
        }
Exemplo n.º 2
0
 public static GRGEN_MODEL.@Edge CreateEdge(GRGEN_LGSP.LGSPNamedGraph graph, GRGEN_LGSP.LGSPNode source, GRGEN_LGSP.LGSPNode target, string edgeName)
 {
     GRGEN_MODEL.@Edge edge;
     if (poolLevel == 0)
     {
         edge = new GRGEN_MODEL.@Edge(source, target);
     }
     else
     {
         edge            = pool[--poolLevel];
         edge.lgspFlags &= ~(uint)GRGEN_LGSP.LGSPElemFlags.HAS_VARIABLES;
         edge.lgspSource = source;
         edge.lgspTarget = target;
         // implicit initialization, container creation of Edge
     }
     graph.AddEdge(edge, edgeName);
     return(edge);
 }
Exemplo n.º 3
0
 private @Edge(GRGEN_MODEL.@Edge oldElem, GRGEN_LGSP.LGSPNode newSource, GRGEN_LGSP.LGSPNode newTarget)
     : base(GRGEN_MODEL.EdgeType_Edge.typeVar, newSource, newTarget)
 {
 }
Exemplo n.º 4
0
		public static GRGEN_MODEL.@Edge CreateEdge(GRGEN_LGSP.LGSPNamedGraph graph, GRGEN_LGSP.LGSPNode source, GRGEN_LGSP.LGSPNode target, string edgeName)
		{
			GRGEN_MODEL.@Edge edge;
			if(poolLevel == 0)
				edge = new GRGEN_MODEL.@Edge(source, target);
			else
			{
				edge = pool[--poolLevel];
				edge.lgspFlags &= ~(uint) GRGEN_LGSP.LGSPElemFlags.HAS_VARIABLES;
				edge.lgspSource = source;
				edge.lgspTarget = target;
				// implicit initialization, container creation of Edge
			}
			graph.AddEdge(edge, edgeName);
			return edge;
		}