let match = matches[0]
var groupVertices: [Vertex] = []
let vertexIdString = String(line[Range(match.range(at: 2), in: line)!])
- let vertexIds = vertexIdString.split(separator: " ", omittingEmptySubsequences: true).map(
- String.init)
+ let vertexIds = vertexIdString.split(separator: ",", omittingEmptySubsequences: true).map(
+ String.init).map({ vertexId in
+ vertexId.trimmingCharacters(in: .whitespacesAndNewlines)
+ })
for vertexId in vertexIds {
if let vertex = vertices[vertexId] {