本文整理汇总了C#中VertexId类的典型用法代码示例。如果您正苦于以下问题:C# VertexId类的具体用法?C# VertexId怎么用?C# VertexId使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VertexId类属于命名空间,在下文中一共展示了VertexId类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: HaymanVertex
public HaymanVertex(VertexId id, RevisionId revisionId)
{
_id = id;
_revisionId = revisionId;
_outEdges = new Dictionary<EdgeId, IGenericEdge<VertexId, RevisionId, HaymanVertexData, EdgeId, RevisionId, HaymanEdgeData, HyperEdgeId, RevisionId, HaymanEdgeData>>();
_inEdges = new Dictionary<EdgeId, IGenericEdge<VertexId, RevisionId, HaymanVertexData, EdgeId, RevisionId, HaymanEdgeData, HyperEdgeId, RevisionId, HaymanEdgeData>>();
}
示例2: VertexIdEmptyConstructorTest
public void VertexIdEmptyConstructorTest()
{
var _VertexId1 = new VertexId();
var _VertexId2 = new VertexId();
Assert.IsTrue(_VertexId1.Length > 0);
Assert.IsTrue(_VertexId2.Length > 0);
Assert.AreNotEqual(_VertexId1, _VertexId2);
}
示例3: op_Inequality_Null_Test2
public void op_Inequality_Null_Test2()
{
VertexId _VertexId1 = null;
var _VertexId2 = new VertexId();
Assert.IsTrue(_VertexId1 != _VertexId2);
}
示例4: GetVertex
/// <summary>
/// Return the vertex referenced by the given vertex identifier.
/// If no vertex is referenced by that identifier, then return null.
/// </summary>
/// <param name="vertexId">The identifier of the vertex.</param>
/// <returns>
/// The vertex referenced by the provided identifier or null when no such edge exists.
/// </returns>
public IHaymanVertex GetVertex(VertexId vertexId)
{
IHaymanVertex vertex;
_vertices.TryGetValue(vertexId, out vertex);
return vertex;
}
示例5:
IHaymanVertex IModelGraphAdapter.GetVertex(VertexId id)
{
return _graph.GetVertex(id);
}
示例6: op_BiggerOrEqual_Bigger2_Test
public void op_BiggerOrEqual_Bigger2_Test()
{
var _VertexId1 = new VertexId(23);
var _VertexId2 = new VertexId(5);
Assert.IsTrue(_VertexId1 >= _VertexId2);
}
示例7: VertexIdUInt32ConstructorTest
public void VertexIdUInt32ConstructorTest()
{
var _VertexId = new VertexId(23U);
Assert.AreEqual("23", _VertexId.ToString());
Assert.AreEqual(2, _VertexId.Length);
}
示例8: op_BiggerOrEqual_Null_Test2
public void op_BiggerOrEqual_Null_Test2()
{
VertexId _VertexId1 = null;
var _VertexId2 = new VertexId();
Assert.IsTrue(_VertexId1 >= _VertexId2);
}
示例9: op_Bigger_Smaller2_Test
public void op_Bigger_Smaller2_Test()
{
var _VertexId1 = new VertexId(5);
var _VertexId2 = new VertexId(23);
Assert.IsFalse(_VertexId1 > _VertexId2);
}
示例10: op_Smaller_Smaller2_Test
public void op_Smaller_Smaller2_Test()
{
var _VertexId1 = new VertexId(5);
var _VertexId2 = new VertexId(23);
Assert.IsTrue(_VertexId1 < _VertexId2);
}
示例11: op_Smaller_Equals_Test
public void op_Smaller_Equals_Test()
{
var _VertexId1 = new VertexId(1);
var _VertexId2 = new VertexId(1);
Assert.IsFalse(_VertexId1 < _VertexId2);
}
示例12: op_Smaller_Null_Test2
public void op_Smaller_Null_Test2()
{
VertexId _VertexId1 = null;
var _VertexId2 = new VertexId();
Assert.IsTrue(_VertexId1 < _VertexId2);
}
示例13: op_Inequality_NotEquals2_Test
public void op_Inequality_NotEquals2_Test()
{
var _VertexId1 = new VertexId(5);
var _VertexId2 = new VertexId(23);
Assert.IsTrue(_VertexId1 != _VertexId2);
}
示例14: op_Inequality_Equals_Test
public void op_Inequality_Equals_Test()
{
var _VertexId1 = new VertexId(1);
var _VertexId2 = new VertexId(1);
Assert.IsFalse(_VertexId1 != _VertexId2);
}
示例15: op_Inequality_SameReference_Test
public void op_Inequality_SameReference_Test()
{
var _VertexId1 = new VertexId();
#pragma warning disable
Assert.IsFalse(_VertexId1 != _VertexId1);
#pragma warning restore
}