本文整理汇总了C#中de.unika.ipd.grGen.lgsp.AddEdge方法的典型用法代码示例。如果您正苦于以下问题:C# de.unika.ipd.grGen.lgsp.AddEdge方法的具体用法?C# de.unika.ipd.grGen.lgsp.AddEdge怎么用?C# de.unika.ipd.grGen.lgsp.AddEdge使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类de.unika.ipd.grGen.lgsp
的用法示例。
在下文中一共展示了de.unika.ipd.grGen.lgsp.AddEdge方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: CreateEdge
public static [email protected] CreateEdge(GRGEN_LGSP.LGSPGraph graph, GRGEN_LGSP.LGSPNode source, GRGEN_LGSP.LGSPNode target)
{
[email protected] edge;
if(poolLevel == 0)
edge = new [email protected](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 classContainsClass
// explicit initializations of contains for target classContainsClass
// explicit initializations of classContainsClass for target classContainsClass
}
graph.AddEdge(edge);
return edge;
}
示例2: CreateEdge
public static [email protected] CreateEdge(GRGEN_LGSP.LGSPNamedGraph graph, GRGEN_LGSP.LGSPNode source, GRGEN_LGSP.LGSPNode target, string edgeName)
{
[email protected] edge;
if(poolLevel == 0)
edge = new [email protected](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;
}