Example #1
0
 /// <summary>
 /// Get an edge for a given id
 /// </summary>
 /// <param name="edgeId">Id of edge</param>
 /// <param name="tailVertex">the tail vertex of the edge</param>
 /// <param name="headVertex">the head vertex of the edge</param>
 /// <returns></returns>
 public Edge GetEdge(EdgeId edgeId, Vertex tailVertex, Vertex headVertex)
 {
     if (Unrestricted)
     {
         if (m_unrestrictedEdges.Contains(edgeId))
         {
             return(new Edge(MyGraph, this, edgeId, headVertex, tailVertex));
         }
     }
     else if (m_restrictedEdges.Contains(edgeId))
     {
         return(new Edge(MyGraph, this, edgeId, headVertex, tailVertex));
     }
     throw new EdgeDoesNotExistException();
 }
Example #2
0
 /// <summary>
 /// Does a certain element (Edge/Vertex) have a property value for this property type
 /// </summary>
 /// <param name="elementId">element id of element</param>
 /// <returns></returns>
 public override bool HasPropertyValue(ElementId elementId)
 {
     return(m_propertyValue.Contains(elementId));
 }