result.put(lineVertice.getName(), lineVertice);
}
private static Vertice getVerticeFromLine(String line) {
String[] graphWithAdjacents = line.split(" ");
Vertice vertice = new Vertice(
Integer.valueOf(graphWithAdjacents[0]),
getAdjacentVericies(graphWithAdjacents));
return vertice;
}