public IEnumerable <HyperEdgeContainer> GetAllOutgoingHyperEdges( PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter) { return(_Vertex.GetAllOutgoingHyperEdges(myFilter)); }
private string CreateGraphDMLforIVertex( IVertexType myVertexType, IVertex myVertex, Dictionary<long, IPropertyDefinition> myPropertyDefinitions) { var stringBuilder = new StringBuilder(); var delimiter = ", "; //INSERT INTO ... VALUES (VertexID = ..., stringBuilder.Append(String.Concat(S_INSERT.ToUpperString(), " ", S_INTO.ToUpperString(), " ", myVertexType.Name, " ", S_VALUES.ToUpperString(), " ", S_BRACKET_LEFT)); stringBuilder.Append(String.Concat(S_UUID, " = ", myVertex.VertexID.ToString(), delimiter)); #region standard attributes (creationDate, ...) string standardProperties = CreateGraphDMLforVertexStandardProperties(myVertex); stringBuilder.Append(standardProperties); #endregion #region properties (age, list<String>, ...) string defAttrsDML = CreateGraphDMLforDefinedProperties(myVertex.GetAllProperties(), myPropertyDefinitions); stringBuilder.Append(defAttrsDML); #endregion #region unstructured data string unstrProperties = CreateGraphDMLforVertexUnstructuredProperties( myVertex.GetAllUnstructuredProperties(), myPropertyDefinitions); stringBuilder.Append(unstrProperties); #endregion #region outgoing edges #region singleEdge string outgoingSingleEdges = CreateGraphDMLforVertexOutgoingSingleEdges( myVertexType, myVertex.GetAllOutgoingSingleEdges(), myVertexType.GetOutgoingEdgeDefinitions(true) .ToDictionary(key => key.ID, value => value)); stringBuilder.Append(outgoingSingleEdges); #endregion #region hyperEdge string outgoingHyperEdges = CreateGraphDMLforVertexOutgoingHyperEdges (myVertexType, myVertex.GetAllOutgoingHyperEdges(), myVertexType.GetOutgoingEdgeDefinitions(true) .ToDictionary(key => key.ID, value => value)); stringBuilder.Append(outgoingHyperEdges); #endregion #endregion if (stringBuilder.ToString().EndsWith(delimiter)) stringBuilder.RemoveSuffix(delimiter); stringBuilder.Append(S_BRACKET_RIGHT); return stringBuilder.ToString(); }
public IEnumerable <Tuple <long, IHyperEdge> > GetAllOutgoingHyperEdges( PropertyHyperGraphFilter.OutgoingHyperEdgeFilter myFilter) { return(_Vertex.GetAllOutgoingHyperEdges(myFilter)); }