当前位置: 首页>>代码示例>>C#>>正文


C# VertexId类代码示例

本文整理汇总了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>>();
 }
开发者ID:Stephanvs,项目名称:MetaStudio,代码行数:7,代码来源:HaymanVertex.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:8,代码来源:VertexIdTests.cs

示例3: op_Inequality_Null_Test2

 public void op_Inequality_Null_Test2()
 {
     VertexId _VertexId1 = null;
     var      _VertexId2 = new VertexId();
     Assert.IsTrue(_VertexId1 != _VertexId2);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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;
 }
开发者ID:Stephanvs,项目名称:MetaStudio,代码行数:14,代码来源:HaymanGraph.cs

示例5:

 IHaymanVertex IModelGraphAdapter.GetVertex(VertexId id)
 {
     return _graph.GetVertex(id);
 }
开发者ID:Stephanvs,项目名称:MetaStudio,代码行数:4,代码来源:Model.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例7: VertexIdUInt32ConstructorTest

 public void VertexIdUInt32ConstructorTest()
 {
     var _VertexId = new VertexId(23U);
     Assert.AreEqual("23", _VertexId.ToString());
     Assert.AreEqual(2,    _VertexId.Length);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例8: op_BiggerOrEqual_Null_Test2

 public void op_BiggerOrEqual_Null_Test2()
 {
     VertexId _VertexId1 = null;
     var      _VertexId2 = new VertexId();
     Assert.IsTrue(_VertexId1 >= _VertexId2);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例12: op_Smaller_Null_Test2

 public void op_Smaller_Null_Test2()
 {
     VertexId _VertexId1 = null;
     var      _VertexId2 = new VertexId();
     Assert.IsTrue(_VertexId1 < _VertexId2);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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);
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:6,代码来源:VertexIdTests.cs

示例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
 }
开发者ID:gabrielgreen,项目名称:Blueprints.NET,代码行数:7,代码来源:VertexIdTests.cs


注:本文中的VertexId类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。