make conjuctivegraph accept triples or quads for add/remove, preparation work for a fix to #307