12 Oct
2012
12 Oct
'12
7:42 p.m.
On Fri, 12 Oct 2012, eric wrote:
Okay, thank you ... new issue....
I am using a labeled_graph, and if I assign a vertex property and then try to get that node again to check the value (like so):
Vertex rootVert = patentGraph[rootName]; rootVert.vertType = "Root"; rootVert = patentGraph[rootName];
At the end rootVert.vertType is no longer "Root". Am I getting some sort of const reference such that my assignment is getting dropped on the floor?
If Vertex is your vertex property type, you are getting a copy and so your updates are being dropped. Declaring rootVert as a Vertex& might fix your issue. -- Jeremiah Willcock