Exemplo n.º 1
0
            /// <summary>
            /// Creates a new edge enumerator.
            /// </summary>
            /// <param name="graph"></param>
            /// <param name="edgeId"></param>
            /// <param name="vertex1"></param>
            public EdgeEnumerator(MemoryGraph <TEdgeData> graph)
            {
                _graph         = graph;
                _currentEdgeId = 0;
                _vertex        = 0;

                _startVertex1        = 0;
                _startVertex2        = 0;
                _startEdge           = 0;
                _currentEdgeInverted = false;
            }
Exemplo n.º 2
0
            /// <summary>
            /// Creates a new edge enumerator.
            /// </summary>
            /// <param name="graph"></param>
            /// <param name="edgeId"></param>
            /// <param name="vertex1"></param>
            /// <param name="vertex2"></param>
            public EdgeEnumerator(MemoryGraph <TEdgeData> graph, uint edgeId, uint vertex1, uint vertex2)
            {
                _graph         = graph;
                _nextEdgeId    = edgeId;
                _currentEdgeId = 0;
                _vertex        = vertex1;

                _startVertex1        = vertex1;
                _startVertex2        = vertex2;
                _startEdge           = edgeId;
                _currentEdgeInverted = false;
            }