Skip to content

Unable to remove Vertices and Edges from SecureGraph #36

@mars76

Description

@mars76

Hi All,

I have inserted few vertices and edges using SecureGraph API and when i tried to delete these by using the Id and the following method is returning true. How ever when i query the graph with the same Id i am getting the data back !!.

Graph graph = createGraph();
if(elementTye==Edge){
graph.removeEdge(element.getId(), authorizations);
}
else{
org.securegraph.Vertex sgVertex = getSecureGraphVertex(uuid, authorizations);
graph.removeVertex(sgVertex, authorizations);
}
// This is redundant . still i am calling
graph.flush();

// I have set the auto flush to true in my props file
mapConfig.put(AccumuloGraphConfiguration.AUTO_FLUSH, true);

which is used in my createGraph() method

When i go to admin screen for checking the table status i don't see the no.of entries changing in _v and _e tables.

Not sure what i am doing wrong. I am not getting any exceptions..

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions