예제 #1
0
        /// <summary>
        /// Resolve a AListReferenceEdgeType to a List of Vertex. This will resolve each edge target using the 'GetAllAttributesFromDBO' method
        /// </summary>
        /// <param name="typeOfAttribute"></param>
        /// <param name="myVertices"></param>
        /// <param name="myDepth"></param>
        /// <param name="currentLvl"></param>
        /// <returns></returns>
        internal IEnumerable<Vertex> GetVertices(GraphDBType myTypeOfAttribute, ASetOfReferencesEdgeType myVertices, Int64 myDepth, EdgeList myLevelKey, String myReference, Boolean myUsingGraph)
        {

            foreach (var _Vertex in myVertices.GetVertices(_ObjectUUID => LoadAndResolveVertex(_ObjectUUID,
                                                                                               myTypeOfAttribute,
                                                                                               myDepth,
                                                                                               myLevelKey,
                                                                                               myReference,
                                                                                               myUsingGraph)))
            {
                if (_Vertex != null)
                {
                    yield return _Vertex;
                }
            }

            yield break;

        }
예제 #2
0
        /// <summary>
        /// Resolve a AListReferenceEdgeType to a DBObjectReadouts. This will resolve each edge target using the 'GetAllAttributesFromDBO' method
        /// </summary>
        /// <param name="myTypeOfAttribute"></param>
        /// <param name="myVertices"></param>
        /// <param name="myDepth"></param>
        /// <param name="currentLvl"></param>
        /// <returns></returns>
        internal IEnumerable<Vertex> GetVertices(GraphDBType myTypeOfAttribute, ASetOfReferencesEdgeType myVertices, IEnumerable<Exceptional<DBObjectStream>> myObjectUUIDs, Int64 myDepth, EdgeList myLevelKey, String myReference, Boolean myUsingGraph)
        {

            foreach (var _Vertex in myVertices.GetReadouts(_ObjectUUID => LoadAndResolveVertex(_ObjectUUID,
                                                                                               myTypeOfAttribute,
                                                                                               myDepth,
                                                                                               myLevelKey,
                                                                                               myReference,
                                                                                               myUsingGraph),
                                                           myObjectUUIDs))

            {
                yield return _Vertex;
            }

            yield break;

        }