Skip to content

Commit 95ac2d1

Browse files
peterschrammeltautschnig
authored andcommitted
Remove obsolete graphml frontierNode, nodeType and add new cyclehead
1 parent 64e830a commit 95ac2d1

File tree

1 file changed

+14
-27
lines changed

1 file changed

+14
-27
lines changed

src/xmllang/graphml.cpp

Lines changed: 14 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -252,33 +252,6 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
252252
key.set_attribute("id", "invariant.scope");
253253
}
254254

255-
// <key attr.name="nodeType" attr.type="string" for="node" id="nodetype">
256-
// <default>path</default>
257-
// </key>
258-
{
259-
xmlt &key=graphml.new_element("key");
260-
key.set_attribute("attr.name", "nodeType");
261-
key.set_attribute("attr.type", "string");
262-
key.set_attribute("for", "node");
263-
key.set_attribute("id", "nodetype");
264-
265-
key.new_element("default").data="path";
266-
}
267-
268-
// <key attr.name="isFrontierNode" attr.type="boolean" for="node"
269-
// id="frontier">
270-
// <default>false</default>
271-
// </key>
272-
{
273-
xmlt &key=graphml.new_element("key");
274-
key.set_attribute("attr.name", "isFrontierNode");
275-
key.set_attribute("attr.type", "boolean");
276-
key.set_attribute("for", "node");
277-
key.set_attribute("id", "frontier");
278-
279-
key.new_element("default").data="false";
280-
}
281-
282255
// <key attr.name="isViolationNode" attr.type="boolean" for="node"
283256
// id="violation">
284257
// <default>false</default>
@@ -333,6 +306,20 @@ bool write_graphml(const graphmlt &src, std::ostream &os)
333306
key.new_element("default").data="false";
334307
}
335308

309+
// <key attr.name="cyclehead" attr.type="boolean" for="edge"
310+
// id="cyclehead">
311+
// <default>false</default>
312+
// </key>
313+
{
314+
xmlt &key=graphml.new_element("key");
315+
key.set_attribute("attr.name", "cyclehead");
316+
key.set_attribute("attr.type", "boolean");
317+
key.set_attribute("for", "edge");
318+
key.set_attribute("id", "cyclehead");
319+
320+
key.new_element("default").data="false";
321+
}
322+
336323
// <key attr.name="threadId" attr.type="string" for="edge" id="threadId"/>
337324
{
338325
xmlt &key=graphml.new_element("key");

0 commit comments

Comments
 (0)