예제 #1
0
 public IVertex AddVertex(IDictionary<string, object> theAttributes, KHGraphDB.Structure.Type type = null)
 {
     return AddVertex(null, theAttributes, type);
 }
예제 #2
0
 public IVertex AddVertex(string ID, IDictionary<string, object> theAttributes, KHGraphDB.Structure.Type type = null)
 {
     IVertex v = new Vertex(ID, theAttributes);
     return AddVertex(v, type);
 }
예제 #3
0
        public IVertex AddVertex(IVertex v, KHGraphDB.Structure.Type type = null)
        {
            if (v != null && Graph.Equals(v.Graph)) return v;

            if (Graph.AddVertex(v, type))
                return v;

            return null;
        }