public override bool AreAttributesEqual(GRGEN_LIBGR.IGraphElement that) { if (!(that is @UEdge)) { return(false); } @UEdge that_ = (@UEdge)that; return(true ); }
public static GRGEN_MODEL.@UEdge CreateEdge(GRGEN_LGSP.LGSPNamedGraph graph, GRGEN_LGSP.LGSPNode source, GRGEN_LGSP.LGSPNode target, string edgeName) { GRGEN_MODEL.@UEdge edge; if (poolLevel == 0) { edge = new GRGEN_MODEL.@UEdge(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 UEdge } graph.AddEdge(edge, edgeName); return(edge); }
private @UEdge(GRGEN_MODEL.@UEdge oldElem, GRGEN_LGSP.LGSPNode newSource, GRGEN_LGSP.LGSPNode newTarget) : base(GRGEN_MODEL.EdgeType_UEdge.typeVar, newSource, newTarget) { }
public static GRGEN_MODEL.@UEdge CreateEdge(GRGEN_LGSP.LGSPNamedGraph graph, GRGEN_LGSP.LGSPNode source, GRGEN_LGSP.LGSPNode target, string edgeName) { GRGEN_MODEL.@UEdge edge; if(poolLevel == 0) edge = new GRGEN_MODEL.@UEdge(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 UEdge } graph.AddEdge(edge, edgeName); return edge; }