Revize fd0641ef
Přidáno uživatelem Vít Mazín před více než 5 roky(ů)
sources/imiger-dot-converter/src/main/java/cz/zcu/kiv/imiger/plugin/dot/loader/PaypalDOTLoader.java | ||
---|---|---|
94 | 94 |
|
95 | 95 |
if(!node.getAttributes().entrySet().isEmpty()) { |
96 | 96 |
for (Map.Entry<String, Object> entry : node.getAttributes().entrySet()) { |
97 |
String key = entry.getKey().replaceAll("\\\\n|\\\\l", ""); |
|
98 |
String value = entry.getValue().toString().replaceAll("\\\\n|\\\\l", ""); |
|
97 |
String key = entry.getKey().replaceAll("\\\\n|\\\\l|\"\"", "");
|
|
98 |
String value = entry.getValue().toString().replaceAll("\\\\n|\\\\l|\"\"", "");
|
|
99 | 99 |
attrs.put(key, value); |
100 | 100 |
attributeNames.add(key); |
101 | 101 |
} |
102 | 102 |
} |
103 | 103 |
|
104 |
VertexDTO vertex = new VertexDTO(node.getId().replaceAll("\\\\n|\\\\l", ""), id++, attrs); |
|
104 |
VertexDTO vertex = new VertexDTO(node.getId().replaceAll("\\\\n|\\\\l|\"\"", ""), id++, attrs);
|
|
105 | 105 |
this.remappedVertices.put(node, vertex.getId()); |
106 | 106 |
|
107 | 107 |
vertices.add(vertex); |
... | ... | |
120 | 120 |
|
121 | 121 |
if(!edge.getAttributes().entrySet().isEmpty()) { |
122 | 122 |
for (Map.Entry<String, Object> entry : edge.getAttributes().entrySet()) { |
123 |
String key = entry.getKey().replaceAll("\\\\n|\\\\l", ""); |
|
124 |
String value = entry.getValue().toString().replaceAll("\\\\n|\\\\l", ""); |
|
123 |
String key = entry.getKey().replaceAll("\\\\n|\\\\l|\"\"", "");
|
|
124 |
String value = entry.getValue().toString().replaceAll("\\\\n|\\\\l|\"\"", "");
|
|
125 | 125 |
attrs.put(key, value); |
126 | 126 |
attributeNames.add(key); |
127 | 127 |
} |
... | ... | |
129 | 129 |
|
130 | 130 |
int from = remappedVertices.get(edge.getNode1()); |
131 | 131 |
int to = remappedVertices.get(edge.getNode2()); |
132 |
EdgeDTO edgeDTO = new EdgeDTO(edge.getId().replaceAll("\\\\n|\\\\l", ""), from, to, id++, attrs); |
|
132 |
EdgeDTO edgeDTO = new EdgeDTO(edge.getId().replaceAll("\\\\n|\\\\l|\"\"", ""), from, to, id++, attrs);
|
|
133 | 133 |
|
134 | 134 |
edges.add(edgeDTO); |
135 | 135 |
} |
Také k dispozici: Unified diff
Removing hyphens